From 67bc8d7cc02a7a75529b2d87f4eb4d89bca8d3b8 Mon Sep 17 00:00:00 2001 From: Jan Schmidt <jan@centricular.com> Date: Fri, 9 Dec 2022 02:07:57 +1100 Subject: [PATCH] adaptivedemux2: Add gst_adaptive_demux_get_loop() Add an accessor function for retrieving the demuxer's scheduler thread loop. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883> --- .../gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c | 6 ++++++ .../gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c index aa517e9414..e809c28825 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c @@ -3876,3 +3876,9 @@ gst_adaptive_demux_play_rate (GstAdaptiveDemux * demux) GST_ADAPTIVE_DEMUX_SEGMENT_UNLOCK (demux); return rate; } + +GstAdaptiveDemuxLoop * +gst_adaptive_demux_get_loop (GstAdaptiveDemux * demux) +{ + return gst_adaptive_demux_loop_ref (demux->priv->scheduler_task); +} diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h index 35a561441a..5bd6572df8 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h @@ -472,6 +472,8 @@ GstCaps * gst_codec_utils_caps_from_iso_rfc6831 (gchar * codec); gdouble gst_adaptive_demux_play_rate (GstAdaptiveDemux *demux); +GstAdaptiveDemuxLoop *gst_adaptive_demux_get_loop (GstAdaptiveDemux *demux); + G_END_DECLS #endif