mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
dtsdec: Fix reference leak on all input buffers in 'dvd mode'
https://bugzilla.gnome.org/show_bug.cgi?id=598274
This commit is contained in:
parent
7eb553e2de
commit
61eebb8cb5
1 changed files with 4 additions and 0 deletions
|
@ -740,10 +740,12 @@ gst_dtsdec_chain (GstPad * pad, GstBuffer * buf)
|
|||
ret = gst_dtsdec_chain_raw (pad, subbuf);
|
||||
}
|
||||
} else {
|
||||
gst_object_ref (buf);
|
||||
ret = gst_dtsdec_chain_raw (pad, buf);
|
||||
}
|
||||
|
||||
done:
|
||||
gst_object_unref (buf);
|
||||
return ret;
|
||||
|
||||
/* ERRORS */
|
||||
|
@ -751,12 +753,14 @@ not_enough_data:
|
|||
{
|
||||
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
||||
("Insufficient data in buffer. Can't determine first_acess"));
|
||||
gst_object_unref (buf);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
bad_first_access_parameter:
|
||||
{
|
||||
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
||||
("Bad first_access parameter (%d) in buffer", first_access));
|
||||
gst_object_unref (buf);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue