[Redbutton-devel] SF.net SVN: redbutton: [20] redbutton-download/trunk/command.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2006-03-15 14:47:22
|
Revision: 20 Author: skilvington Date: 2006-03-15 06:47:18 -0800 (Wed, 15 Mar 2006) ViewCVS: http://svn.sourceforge.net/redbutton/?rev=20&view=rev Log Message: ----------- expect correct number of args to stream commands Modified Paths: -------------- redbutton-download/trunk/command.c Modified: redbutton-download/trunk/command.c =================================================================== --- redbutton-download/trunk/command.c 2006-03-15 14:30:18 UTC (rev 19) +++ redbutton-download/trunk/command.c 2006-03-15 14:47:18 UTC (rev 20) @@ -144,7 +144,7 @@ int ts_fd; char hdr[64]; - CHECK_USAGE(1, "astream <ComponentTag>"); + CHECK_USAGE(2, "astream <ComponentTag>"); tag = strtol(argv[1], NULL, 0); @@ -204,7 +204,7 @@ int ts_fd; char hdr[64]; - CHECK_USAGE(1, "vstream <ComponentTag>"); + CHECK_USAGE(2, "vstream <ComponentTag>"); tag = strtol(argv[1], NULL, 0); @@ -267,7 +267,7 @@ int ts_fd; char hdr[64]; - CHECK_USAGE(2, "avstream <AudioTag> <VideoTag>"); + CHECK_USAGE(3, "avstream <AudioTag> <VideoTag>"); audio_tag = strtol(argv[1], NULL, 0); video_tag = strtol(argv[2], NULL, 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |