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>
This commit is contained in:
Jan Schmidt 2022-12-09 02:07:57 +11:00 committed by GStreamer Marge Bot
parent 2082c8912d
commit 67bc8d7cc0
2 changed files with 8 additions and 0 deletions

View file

@ -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);
}

View file

@ -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