mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
Correctly cast to GstBuffer * before passing to gst_buffer_(copy|unref)
This commit is contained in:
parent
2ab2bbd82c
commit
f14015567b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue