mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
collectpads: do not unref flush_start twice
Based on patch by Matej Knopp <matej.knopp@gmail.com>
This commit is contained in:
parent
6a48006c21
commit
6802189d68
1 changed files with 3 additions and 1 deletions
|
@ -1722,6 +1722,7 @@ gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
|
||||||
/* forward event to unblock check_collected */
|
/* forward event to unblock check_collected */
|
||||||
GST_DEBUG_OBJECT (pad, "forwarding flush start");
|
GST_DEBUG_OBJECT (pad, "forwarding flush start");
|
||||||
res = gst_pad_event_default (pad, parent, event);
|
res = gst_pad_event_default (pad, parent, event);
|
||||||
|
event = NULL;
|
||||||
|
|
||||||
/* now unblock the chain function.
|
/* now unblock the chain function.
|
||||||
* no cond per pad, so they all unblock,
|
* no cond per pad, so they all unblock,
|
||||||
|
@ -1846,6 +1847,7 @@ gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
|
||||||
}
|
}
|
||||||
|
|
||||||
eat:
|
eat:
|
||||||
|
if (event)
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue