]> rtime.felk.cvut.cz Git - frescor/streamer.git/commitdiff
Allow to specify sdp file name
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 29 Nov 2009 17:54:53 +0000 (18:54 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 29 Nov 2009 17:54:53 +0000 (18:54 +0100)
streamer.c

index 7ec7f8a35cc8f90dbc05e04308f47efe4447a9d1..a91ee249e3054c505a8fdad2b633b17c1c0257ac 100644 (file)
@@ -65,6 +65,7 @@ usage(void)
        printf("  -i <string>    input video device format [%s]\n", impform);
        printf("  -p <port>      destination port [%d]\n", dport);
        printf("  -b <bitrate>   bitrate in b/s [%d]\n", bitrate);
+       printf("  -s <sdp_file>  name of output sdp file [%s]\n", sdp_file);
       #ifdef CONFIG_OC_ULUT
        printf("  -l <number>|<domain>=<number>,...\n");
       #endif /*CONFIG_OC_ULUT*/
@@ -74,8 +75,11 @@ static int args_parse(int argc, char *argv[])
 {
   int v;
 
-  while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:")) >= 0) {
+  while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:s:")) >= 0) {
     switch (v) {
+      case 's':
+       sdp_file = optarg;
+       break;
       case 'p':
         dport = atoi(optarg);
         break;