Revision f0bb64e2 streamer.c

View differences:

streamer.c
16 16

  
17 17
#include "net_helpers.h"
18 18
#include "loop.h"
19
#include "output.h"
19 20

  
20 21
static const char *my_iface = "eth0";
21 22
static int port = 6666;
......
25 26
static int chunks_per_second = 25;
26 27
static int multiply = 1;
27 28
static int buff_size = 50;
29
static int outbuff_size = 25;
28 30
static const char *fname = "input.mpg";
29 31
static bool loop_input = false;
30 32
unsigned char msgTypes[] = {MSG_TYPE_TOPOLOGY,MSG_TYPE_CHUNK,MSG_TYPE_SIGNALLING};
......
33 35
{
34 36
  int o;
35 37

  
36
  while ((o = getopt(argc, argv, "b:c:t:p:i:P:I:f:m:l")) != -1) {
38
  while ((o = getopt(argc, argv, "b:o:c:t:p:i:P:I:f:m:l")) != -1) {
37 39
    switch(o) {
38 40
      case 'b':
39 41
        buff_size = atoi(optarg);
40 42
        break;
43
      case 'o':
44
        outbuff_size = atoi(optarg);
45
        break;
41 46
      case 'c':
42 47
        chunks_per_second = atoi(optarg);
43 48
        break;
......
96 101
  free(my_addr);
97 102
  topInit(myID);
98 103

  
104
  output_init(outbuff_size);
105

  
99 106
  return myID;
100 107
}
101 108

  

Also available in: Unified diff