mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +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 */
|
||||
GST_DEBUG_OBJECT (pad, "forwarding flush start");
|
||||
res = gst_pad_event_default (pad, parent, event);
|
||||
event = NULL;
|
||||
|
||||
/* now unblock the chain function.
|
||||
* no cond per pad, so they all unblock,
|
||||
|
@ -1846,7 +1847,8 @@ gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
|
|||
}
|
||||
|
||||
eat:
|
||||
gst_event_unref (event);
|
||||
if (event)
|
||||
gst_event_unref (event);
|
||||
return res;
|
||||
|
||||
forward:
|
||||
|
|
Loading…
Reference in a new issue