mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 10:04:19 +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
|
* Reconfiguring must be synchronous to avoid dropping the current
|
||||||
* buffer */
|
* buffer */
|
||||||
gst_pad_send_event (sinkpad, gst_event_new_caps (incaps));
|
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))) {
|
if (!gst_pad_needs_reconfigure (GST_BASE_TRANSFORM_SRC_PAD (bt))) {
|
||||||
GST_DEBUG_OBJECT (bt, "Retry uploading with new caps");
|
GST_DEBUG_OBJECT (bt, "Retry uploading with new caps");
|
||||||
goto again;
|
goto again;
|
||||||
|
|
Loading…
Reference in a new issue