mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
tests: fix the tag test
The previous change (see bgo #756069) was causing us to free the same pointer multiple times. If we actually get a sample back, the test fails, no need to free anything in that case.
This commit is contained in:
parent
501b96ef11
commit
05239c58e3
1 changed files with 0 additions and 4 deletions
|
@ -373,13 +373,9 @@ GST_START_TEST (test_buffer_tags)
|
|||
gst_sample_unref (s2);
|
||||
|
||||
fail_if (gst_tag_list_get_sample_index (tags, GST_TAG_IMAGE, 1, &s1));
|
||||
gst_sample_unref (s1);
|
||||
fail_if (gst_tag_list_get_sample_index (tags, GST_TAG_IMAGE, 2, &s1));
|
||||
gst_sample_unref (s1);
|
||||
fail_if (gst_tag_list_get_sample_index (tags, GST_TAG_PREVIEW_IMAGE, 1, &s1));
|
||||
gst_sample_unref (s1);
|
||||
fail_if (gst_tag_list_get_sample_index (tags, GST_TAG_PREVIEW_IMAGE, 2, &s1));
|
||||
gst_sample_unref (s1);
|
||||
|
||||
fail_if (!gst_tag_list_get_sample_index (tags, GST_TAG_IMAGE, 0, &s1));
|
||||
fail_if (!gst_tag_list_get_sample_index (tags, GST_TAG_PREVIEW_IMAGE, 0,
|
||||
|
|
Loading…
Reference in a new issue