Revision 0faee466
src/Chunkiser/output-stream-avf.c | ||
---|---|---|
10 | 10 |
|
11 | 11 |
//#include "dbg.h" |
12 | 12 |
#include "payload.h" |
13 |
#include "config.h" |
|
13 | 14 |
#include "dechunkiser_iface.h" |
14 | 15 |
|
15 | 16 |
struct output_stream { |
... | ... | |
93 | 94 |
static struct output_stream *avf_init(const char *fname, const char *config) |
94 | 95 |
{ |
95 | 96 |
struct output_stream *out; |
97 |
struct tag *cfg_tags; |
|
96 | 98 |
|
97 | 99 |
out = malloc(sizeof(struct output_stream)); |
98 | 100 |
if (out == NULL) { |
... | ... | |
106 | 108 |
} else { |
107 | 109 |
out->output_file = "/dev/stdout"; |
108 | 110 |
} |
111 |
cfg_tags = config_parse(config); |
|
112 |
if (cfg_tags) { |
|
113 |
const char *format; |
|
114 |
|
|
115 |
format = config_value_str(cfg_tags, "format"); |
|
116 |
if (format) { |
|
117 |
out->output_format = strdup(format); |
|
118 |
} |
|
119 |
} |
|
109 | 120 |
|
110 | 121 |
return out; |
111 | 122 |
} |
Also available in: Unified diff