Revision 176b8de8 src/Chunkiser/input-stream-avf.c

View differences:

src/Chunkiser/input-stream-avf.c
12 12
#include "libav-compat.h"
13 13
#include "int_coding.h"
14 14
#include "payload.h"
15
#include "config.h"
15
#include "grapes_config.h"
16 16
#include "ffmpeg_compat.h"
17 17
#include "chunkiser_iface.h"
18 18

  
......
182 182
  desc->a_frames = 0;
183 183
  desc->a_data = NULL;
184 184
  desc->a_size = 0;
185
  cfg_tags = config_parse(config);
185
  cfg_tags = grapes_config_parse(config);
186 186
  if (cfg_tags) {
187 187
    const char *media;
188 188

  
189
    config_value_int(cfg_tags, "loop", &desc->loop);
190
    media = config_value_str(cfg_tags, "media");
189
    grapes_config_value_int(cfg_tags, "loop", &desc->loop);
190
    media = grapes_config_value_str(cfg_tags, "media");
191 191
    if (media) {
192 192
      if (!strcmp(media, "audio")) {
193 193
        audio_streams = 0;
......
200 200
        video_streams = 0;
201 201
      }
202 202
    }
203
    config_value_int(cfg_tags, "vframes", &desc->v_frames_max);
204
    config_value_int(cfg_tags, "aframes", &desc->a_frames_max);
203
    grapes_config_value_int(cfg_tags, "vframes", &desc->v_frames_max);
204
    grapes_config_value_int(cfg_tags, "aframes", &desc->a_frames_max);
205 205
  }
206 206
  free(cfg_tags);
207 207
  for (i = 0; i < desc->s->nb_streams; i++) {

Also available in: Unified diff