Correctly cast to GstBuffer * before passing to gst_buffer_(copy|unref)

This commit is contained in:
Sebastian Dröge 2009-02-22 19:20:40 +01:00
parent 2ab2bbd82c
commit f14015567b

View file

@ -50,7 +50,7 @@ GST_START_TEST (test_netbuffer_copy)
GST_BUFFER_FLAG_SET (netbuf, GST_BUFFER_FLAG_DISCONT);
GST_BUFFER_FLAG_SET (netbuf, GST_BUFFER_FLAG_READONLY);
copy = (GstNetBuffer *) gst_buffer_copy (netbuf);
copy = (GstNetBuffer *) gst_buffer_copy (GST_BUFFER_CAST (netbuf));
fail_unless (copy != NULL, "failed to copy net buffer");
fail_unless (GST_IS_NETBUFFER (copy), "copied buffer is not a GstNetBuffer!");
@ -74,8 +74,8 @@ GST_START_TEST (test_netbuffer_copy)
fail_unless (port == ipv6_port,
"Copied buffer has wrong IPv6 destination port");
gst_buffer_unref (netbuf);
gst_buffer_unref (copy);
gst_buffer_unref (GST_BUFFER_CAST (netbuf));
gst_buffer_unref (GST_BUFFER_CAST (copy));
}
GST_END_TEST;