Revision 1cc19859

View differences:

src/Chunkiser/input-stream-avf.c
15 15
#define STATIC_BUFF_SIZE 1000 * 1024
16 16
struct input_stream {
17 17
  AVFormatContext *s;
18
  bool loop;	//loop on input file infinitely
18
  int loop;	//loop on input file infinitely
19 19
  int audio_stream;
20 20
  int video_stream;
21 21
  int64_t last_ts;
......
123 123
{
124 124
  struct input_stream *desc;
125 125
  int i, res;
126
  struct tag *cfg_tags;
126 127

  
127 128
  avcodec_register_all();
128 129
  av_register_all();
......
149 150
  desc->audio_stream = -1;
150 151
  desc->last_ts = 0;
151 152
  desc->base_ts = 0;
152
  desc->loop = 0;	// FIXME: Check config!
153
  desc->loop = 0;
154
  cfg_tags = config_parse(config);
155
  if (cfg_tags) {
156
    config_value_int(cfg_tags, "loop", &desc->loop);
157
  }
153 158
  for (i = 0; i < desc->s->nb_streams; i++) {
154 159
    if (desc->video_stream == -1 && desc->s->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) {
155 160
      desc->video_stream = i;

Also available in: Unified diff