summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-10-16 11:08:05 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-10-16 11:09:15 +0100
commitda26d728acb989bf7885f8353092e026f164bc06 (patch)
tree69f11ace4689a4feabdf1f13aa507cb9d56c1a9c
parent0fcf8001b16727cdd0e0a26f8ac5a76126a20d5d (diff)
downloadgstreamer-plugins-bad-da26d728acb989bf7885f8353092e026f164bc06.tar.gz
dtsdec: Use gst_buffer_ref/unref, not gst_object_ref/unref
properly fixes: #598274
-rw-r--r--ext/dts/gstdtsdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c
index a91ab5544..8d026a43b 100644
--- a/ext/dts/gstdtsdec.c
+++ b/ext/dts/gstdtsdec.c
@@ -740,12 +740,12 @@ gst_dtsdec_chain (GstPad * pad, GstBuffer * buf)
ret = gst_dtsdec_chain_raw (pad, subbuf);
}
} else {
- gst_object_ref (buf);
+ gst_buffer_ref (buf);
ret = gst_dtsdec_chain_raw (pad, buf);
}
done:
- gst_object_unref (buf);
+ gst_buffer_unref (buf);
return ret;
/* ERRORS */
@@ -753,14 +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);
+ gst_buffer_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);
+ gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}
}