mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 01:32:42 +00:00
dtsdec: Use gst_buffer_ref/unref, not gst_object_ref/unref
properly fixes: #598274
This commit is contained in:
parent
0fcf8001b1
commit
da26d728ac
1 changed files with 4 additions and 4 deletions
|
@ -740,12 +740,12 @@ gst_dtsdec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
ret = gst_dtsdec_chain_raw (pad, subbuf);
|
ret = gst_dtsdec_chain_raw (pad, subbuf);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gst_object_ref (buf);
|
gst_buffer_ref (buf);
|
||||||
ret = gst_dtsdec_chain_raw (pad, buf);
|
ret = gst_dtsdec_chain_raw (pad, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
gst_object_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
@ -753,14 +753,14 @@ not_enough_data:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
||||||
("Insufficient data in buffer. Can't determine first_acess"));
|
("Insufficient data in buffer. Can't determine first_acess"));
|
||||||
gst_object_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
bad_first_access_parameter:
|
bad_first_access_parameter:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (GST_ELEMENT (dts), STREAM, DECODE, (NULL),
|
||||||
("Bad first_access parameter (%d) in buffer", first_access));
|
("Bad first_access parameter (%d) in buffer", first_access));
|
||||||
gst_object_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue