Revision 03de31e0 streamer.c

View differences:

streamer.c
53 53
static int buff_size = 50;
54 54
static int outbuff_size = 50;
55 55
static const char *fname = "/dev/stdin";
56
static const char *output_config;
57
static bool loop_input = false;
56
static const char *output_config ="";
58 57
static const char *net_helper_config = "";
59 58
static const char *topo_config = "";
60 59
unsigned char msgTypes[] = {MSG_TYPE_CHUNK,MSG_TYPE_SIGNALLING};
......
121 120
    "Special Source Peer options\n"
122 121
    "\t[-m chunks]: set the number of copies the source injects in the overlay.\n"
123 122
    "\t[-f filename]: name of the video stream file to transmit.\n"
124
    "\t[-l]: loop the video stream.\n"
125 123
    "\t[-S]: set initial chunk_id (source only).\n"
126 124
    "\t[-s]: set start_id from which to start output.\n"
127 125
    "\t[-e]: set end_id at which to end output.\n"
......
254 252
      case 'F':
255 253
        output_config = strdup(optarg);
256 254
        break;
257
      case 'l':
258
        loop_input = true;
259
        break;
260 255
      case 'C':
261 256
        channel_set_name(optarg);
262 257
        break;
......
403 398

  
404 399
    loop(my_sock, 1000000 / chunks_per_second, buff_size);
405 400
  } else {
406
    source_loop(fname, my_sock, period * 1000, multiply, loop_input, buff_size);
401
    source_loop(fname, my_sock, period * 1000, multiply, buff_size);
407 402
  }
408 403
  return 0;
409 404
}

Also available in: Unified diff