]> rtime.felk.cvut.cz Git - frescor/streamer.git/commitdiff
Streamer updated to allow specify destination host (option -m).
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 16 May 2009 14:53:53 +0000 (16:53 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 16 May 2009 14:53:53 +0000 (16:53 +0200)
The default changed to local (127.0.0.1).

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
streamer.c

index b11021213624facf83bdc7093cdd5f459a44ab89..1a708cd81ea2de800cac22823fa166fc5f87e225 100644 (file)
@@ -17,7 +17,7 @@
 
 static const char *sdp_file = "sdp.txt";
 static const char *vdev = "/dev/video0";
-static const char *dst = "224.10.20.30";
+static const char *dst = "127.0.0.1";
 static int dport = 20000;
 static int width = 352;
 static int height = 288;
@@ -38,7 +38,7 @@ static int args_parse(int argc, char *argv[])
 {
   int v;
 
-  while ((v = getopt(argc, argv, "w:h:r:d:")) >= 0) {
+  while ((v = getopt(argc, argv, "w:h:r:d:m:")) >= 0) {
     switch (v) {
       case 'w':
         width = atoi(optarg);