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:
Artem Smorodin
2025-11-10 14:38:37 +03:00
committed by Marton Balint
parent 88b676105d
commit e94439e49b

View File

@@ -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) { \