mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 17:31:10 +00:00
funnel: Fix buffer leak
This commit is contained in:
parent
8f267451f4
commit
03ce735b07
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ gst_funnel_sink_chain (GstPad * pad, GstBuffer * buffer)
|
|||
if (GST_BUFFER_CAPS (buffer) && GST_BUFFER_CAPS (buffer) != padcaps) {
|
||||
if (!gst_pad_set_caps (funnel->srcpad, GST_BUFFER_CAPS (buffer))) {
|
||||
res = GST_FLOW_NOT_NEGOTIATED;
|
||||
gst_buffer_unref (buffer);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue