mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
adaptivedemux2: stream: Don't take TRACKS_LOCK when sending EOS event
The stream tracks list can't change while we're iterating it from the scheduling thread, and the event handler immediately takes the tracks lock, causing a deadlock. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2650>
This commit is contained in:
parent
e9f8c7d33a
commit
e1559d26d0
1 changed files with 0 additions and 3 deletions
|
@ -1452,15 +1452,12 @@ gst_adaptive_demux2_stream_push_event (GstAdaptiveDemux2Stream * stream,
|
|||
* We don't need to care about any other events
|
||||
*/
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
||||
GstAdaptiveDemux *demux = stream->demux;
|
||||
GList *iter;
|
||||
|
||||
TRACKS_LOCK (demux);
|
||||
for (iter = stream->tracks; iter; iter = iter->next) {
|
||||
GstAdaptiveDemuxTrack *track = (GstAdaptiveDemuxTrack *) iter->data;
|
||||
ret &= gst_pad_send_event (track->sinkpad, gst_event_ref (event));
|
||||
}
|
||||
TRACKS_UNLOCK (demux);
|
||||
}
|
||||
|
||||
gst_event_unref (event);
|
||||
|
|
Loading…
Reference in a new issue