mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gluploadelement: Fix caps leak
gst_event_new_caps() does not take ownership of the caps Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/885
This commit is contained in:
parent
a6afa88812
commit
e007710b59
1 changed files with 1 additions and 0 deletions
|
@ -249,6 +249,7 @@ again:
|
|||
* Reconfiguring must be synchronous to avoid dropping the current
|
||||
* buffer */
|
||||
gst_pad_send_event (sinkpad, gst_event_new_caps (incaps));
|
||||
gst_caps_unref (incaps);
|
||||
if (!gst_pad_needs_reconfigure (GST_BASE_TRANSFORM_SRC_PAD (bt))) {
|
||||
GST_DEBUG_OBJECT (bt, "Retry uploading with new caps");
|
||||
goto again;
|
||||
|
|
Loading…
Reference in a new issue