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:
Guillaume Desmottes 2016-05-19 12:51:17 +03:00 committed by Sebastian Dröge
parent 9694e7e820
commit bebe4ca7ab

View file

@ -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 ();
}