mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
avformat/tee: fix the default onfail setting of the tee salves
I found that the default value is not set for onfail option. I see that there is an attempt to set this value by default inside parse_slave_failure_policy_option. But look at the CONSUME_OPTION macro. If av_dict_get cannot find this option, then this function is not even called.
This commit is contained in:
committed by
Marton Balint
parent
88b676105d
commit
e94439e49b
@@ -167,6 +167,8 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
|
||||
if ((ret = ff_tee_parse_slave_options(avf, slave, &options, &filename)) < 0)
|
||||
return ret;
|
||||
|
||||
tee_slave->on_fail = DEFAULT_SLAVE_FAILURE_POLICY;
|
||||
|
||||
#define CONSUME_OPTION(option, field, action) do { \
|
||||
AVDictionaryEntry *en = av_dict_get(options, option, NULL, 0); \
|
||||
if (en) { \
|
||||
|
||||
Reference in New Issue
Block a user