From 610faf705bba229423f0d3e0943c53ecfe860db7 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 19 Sep 2023 17:00:48 -0500 Subject: stream: remove unneeded mp_read_option_raw call We can get the group from demux_conf instead and use that. --- stream/stream.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stream/stream.c b/stream/stream.c index 263c7f5e72..dd67825dd5 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -30,6 +30,7 @@ #include "common/common.h" #include "common/global.h" +#include "demux/demux.h" #include "misc/bstr.h" #include "misc/thread_tools.h" #include "common/msg.h" @@ -353,9 +354,9 @@ static int stream_create_instance(const stream_info_t *sinfo, if (flags & STREAM_LESS_NOISE) mp_msg_set_max_level(s->log, MSGL_WARN); - bool opt; - mp_read_option_raw(s->global, "access-references", &m_option_type_bool, &opt); - s->access_references = opt; + struct demux_opts *demux_opts = mp_get_config_group(s, s->global, &demux_conf); + s->access_references = demux_opts->access_references; + talloc_free(demux_opts); MP_VERBOSE(s, "Opening %s\n", url); -- cgit v1.2.3