mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-13 03:38:55 +00:00
pad: fix buffer/event leak when pad is flushing
Apparently this got lost while refactoring probes.
This commit is contained in:
parent
216a877825
commit
5239679c09
1 changed files with 2 additions and 0 deletions
|
@ -3640,6 +3640,7 @@ flushing:
|
|||
"chaining, but pad was flushing");
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
GST_PAD_STREAM_UNLOCK (pad);
|
||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (data));
|
||||
return GST_FLOW_WRONG_STATE;
|
||||
}
|
||||
events_error:
|
||||
|
@ -3647,6 +3648,7 @@ events_error:
|
|||
GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad, "events were not accepted");
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
GST_PAD_STREAM_UNLOCK (pad);
|
||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (data));
|
||||
return ret;
|
||||
}
|
||||
probe_stopped:
|
||||
|
|
Loading…
Reference in a new issue