Revision dceef344

View differences:

streaming.c
54 54
static int cb_size;
55 55
static int transid=0;
56 56

  
57
static bool source = 0;
58

  
57 59
static int offer_per_tick = 1;	//N_p parameter of POLITO
58 60

  
61
bool  am_i_source()
62
{
63
  return source;
64
}
65

  
59 66
int _needs(struct chunkID_set *cset, int cb_size, int cid);
60 67

  
61 68
uint64_t gettimeofday_in_us(void)
......
118 125
  if (loop) {
119 126
    flags |= INPUT_LOOP;
120 127
  }
128

  
129
  source = true;
130

  
121 131
  input = input_open(fname, flags, fds, fds_size);
122 132
  if (input == NULL) {
123 133
    return -1;

Also available in: Unified diff