mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 13:36:39 +00:00
uvch264demux: fix buffer leaks in test
The mock chain functions aren't unreffing the buffers so the caller should do it. https://bugzilla.gnome.org/show_bug.cgi?id=766663
This commit is contained in:
parent
9694e7e820
commit
bebe4ca7ab
1 changed files with 2 additions and 0 deletions
|
@ -373,6 +373,7 @@ GST_START_TEST (test_no_data)
|
|||
fail_unless (buffer_h264 == NULL && buffer_jpg != NULL);
|
||||
fail_unless (buffer_nv12 == NULL && buffer_yuy2 == NULL);
|
||||
fail_unless (gerror == NULL && error_debug == NULL);
|
||||
gst_buffer_unref (buffer_jpg);
|
||||
|
||||
_teardown_test ();
|
||||
}
|
||||
|
@ -644,6 +645,7 @@ GST_START_TEST (test_no_sos_marker)
|
|||
fail_unless (gerror == NULL);
|
||||
fail_unless (gst_buffer_get_size (buffer_h264) == sizeof (h264_data));
|
||||
fail_if (gst_buffer_memcmp (buffer_h264, 0, h264_data, sizeof (h264_data)));
|
||||
gst_buffer_unref (buffer_h264);
|
||||
|
||||
_teardown_test ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue