Revision 54b02213 src/Chunkiser/input-stream-rtp.c

View differences:

src/Chunkiser/input-stream-rtp.c
38 38

  
39 39
#include "int_coding.h"
40 40
#include "payload.h"
41
#include "config.h"
41
#include "grapes_config.h"
42 42
#include "chunkiser_iface.h"
43 43
#include "stream-rtp.h"
44 44

  
......
369 369
  }
370 370

  
371 371
  /* Parse options */
372
  cfg_tags = config_parse(config);
372
  cfg_tags = grapes_config_parse(config);
373 373
  if (cfg_tags) {
374
    config_value_int(cfg_tags, "verbosity", &(ctx->verbosity));
374
    grapes_config_value_int(cfg_tags, "verbosity", &(ctx->verbosity));
375 375
    printf_log(ctx, 2, "Verbosity set to %i", ctx->verbosity);
376 376

  
377
    config_value_int(cfg_tags, "rtp_log", &(ctx->rtp_log));
377
    grapes_config_value_int(cfg_tags, "rtp_log", &(ctx->rtp_log));
378 378
    if (ctx->rtp_log) {
379 379
        printf_log(ctx, 2, "Producing parsable rtp log. "
380 380
                   "TimeStamps are expressed in 2^-32 s.");
381 381
    }
382 382

  
383
    config_value_int(cfg_tags, "rfc3551", &(ctx->rfc3551));
383
    grapes_config_value_int(cfg_tags, "rfc3551", &(ctx->rfc3551));
384 384
    printf_log(ctx, 2, "%ssing RFC 3551",
385 385
               (ctx->rfc3551 ? "U" : "Not u"));
386 386

  
387
    if (config_value_int(cfg_tags, "chunk_size", &chunk_size)) {
387
    if (grapes_config_value_int(cfg_tags, "chunk_size", &chunk_size)) {
388 388
      ctx->max_size = chunk_size + UDP_MAX_SIZE;
389 389
    }
390 390
    printf_log(ctx, 2, "Chunk size is %d bytes", chunk_size);
391 391
    printf_log(ctx, 2, "Maximum chunk size is thus %d bytes", ctx->max_size);
392 392

  
393
    if (config_value_int(cfg_tags, "max_delay_ms", &max_delay_input)) {
393
    if (grapes_config_value_int(cfg_tags, "max_delay_ms", &max_delay_input)) {
394 394
      ctx->max_delay = max_delay_input * (1ULL << TS_SHIFT) / 1000;
395 395
    }
396
    else if (config_value_int(cfg_tags, "max_delay_s", &max_delay_input)) {
396
    else if (grapes_config_value_int(cfg_tags, "max_delay_s", &max_delay_input)) {
397 397
      ctx->max_delay = max_delay_input * (1ULL << TS_SHIFT);
398 398
    }
399 399
    printf_log(ctx, 2, "Maximum delay set to %.0f ms.",

Also available in: Unified diff