From 05239c58e3223de9e97ab575e027d6e1735b85fc Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 5 Oct 2015 21:29:49 +0200 Subject: [PATCH] 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. --- tests/check/gst/gsttag.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/check/gst/gsttag.c b/tests/check/gst/gsttag.c index 75c84da..7a5e5ca 100644 --- a/tests/check/gst/gsttag.c +++ b/tests/check/gst/gsttag.c @@ -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, -- 2.7.4