1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Initialize cfg for refresh_interval

This commit is contained in:
Moritz Grimm 2015-05-14 23:28:08 +02:00
parent b62d4b4317
commit 4cffc5102d
3 changed files with 17 additions and 8 deletions

View File

@ -117,6 +117,18 @@ _cfg_load(void)
return (0); return (0);
} }
int
cfg_init(void)
{
_cfg_reset(&cfg);
}
void
cfg_exit(void)
{
_cfg_reset(&cfg);
}
int int
cfg_reload(void) cfg_reload(void)
{ {
@ -132,12 +144,6 @@ cfg_reload(void)
return (0); return (0);
} }
void
cfg_exit(void)
{
_cfg_reset(&cfg);
}
int int
cfg_stream_str2fmt(const char *str, enum cfg_stream_format *fmt_p) cfg_stream_str2fmt(const char *str, enum cfg_stream_format *fmt_p)
{ {

View File

@ -62,9 +62,11 @@ enum cfg_stream_format {
#include "cfg_decoder.h" #include "cfg_decoder.h"
#include "cfg_encoder.h" #include "cfg_encoder.h"
int cfg_reload(void); int cfg_init(void);
void cfg_exit(void); void cfg_exit(void);
int cfg_reload(void);
int cfg_stream_str2fmt(const char *, enum cfg_stream_format *); int cfg_stream_str2fmt(const char *, enum cfg_stream_format *);
const char * const char *
cfg_stream_fmt2str(enum cfg_stream_format); cfg_stream_fmt2str(enum cfg_stream_format);

View File

@ -1007,7 +1007,8 @@ main(int argc, char *argv[])
unsigned int i; unsigned int i;
#endif #endif
ret = 1; ret = 1;
if (0 > cmdline_parse(argc, argv, &ret) || if (0 > cfg_init() ||
0 > cmdline_parse(argc, argv, &ret) ||
0 > log_init() || 0 > log_init() ||
0 > cfg_decoder_init() || 0 > cfg_decoder_init() ||
0 > cfg_encoder_init() || 0 > cfg_encoder_init() ||