Revision c5922d21 src/Chunkiser/input-stream-ts.c

View differences:

src/Chunkiser/input-stream-ts.c
15 15
#include <stdio.h>
16 16

  
17 17
#include "chunkiser_iface.h"
18
#include "config.h"
18
#include "grapes_config.h"
19 19

  
20 20
struct chunkiser_ctx {
21 21
  int loop;	//loop on input file infinitely
......
70 70
  res->fds[1] = -1;
71 71

  
72 72
  res->pkts_per_chunk = DEFAULT_PKTS;
73
  cfg_tags = config_parse(config);
73
  cfg_tags = grapes_config_parse(config);
74 74
  if (cfg_tags) {
75 75
    const char *access_mode;
76 76

  
77
    config_value_int(cfg_tags, "loop", &res->loop);
78
    config_value_int(cfg_tags, "pkts", &res->pkts_per_chunk);
79
    config_value_int(cfg_tags, "pcr_period", &res->pcr_period);
80
    access_mode = config_value_str(cfg_tags, "mode");
77
    grapes_config_value_int(cfg_tags, "loop", &res->loop);
78
    grapes_config_value_int(cfg_tags, "pkts", &res->pkts_per_chunk);
79
    grapes_config_value_int(cfg_tags, "pcr_period", &res->pcr_period);
80
    access_mode = grapes_config_value_str(cfg_tags, "mode");
81 81
    if (access_mode && !strcmp(access_mode, "nonblock")) {
82 82
      fcntl(res->fds[0], F_SETFL, O_NONBLOCK);
83 83
    }

Also available in: Unified diff