mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
hlsdemux: if we're canceling a fetcher, we must stop its thread
This commit is contained in:
parent
42401da686
commit
d69297a23c
1 changed files with 3 additions and 2 deletions
|
@ -638,9 +638,10 @@ gst_hls_demux_stop_fetcher (GstHLSDemux * demux, gboolean cancelled)
|
||||||
/* if we stopped it to cancell a download, free the cached buffer */
|
/* if we stopped it to cancell a download, free the cached buffer */
|
||||||
if (cancelled && !gst_adapter_available (demux->download)) {
|
if (cancelled && !gst_adapter_available (demux->download)) {
|
||||||
gst_adapter_clear (demux->download);
|
gst_adapter_clear (demux->download);
|
||||||
/* signal the fetcher thread that the download has finished/cancelled */
|
|
||||||
g_cond_signal (demux->fetcher_cond);
|
|
||||||
}
|
}
|
||||||
|
/* signal the fetcher thread that the download has finished/cancelled */
|
||||||
|
if (cancelled)
|
||||||
|
g_cond_broadcast (demux->fetcher_cond);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue