diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-09-13 00:40:44 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-13 00:40:44 +0100 |
commit | 3c8aabb97a1a67b66af3eb9ebd9ce7d8b3299df6 (patch) | |
tree | 2e7e0e1bde8298428b82d3e0a7157bef1ced0a46 /tests/check | |
parent | 6a66ebf784290950c64a6596a88653950cf57d4a (diff) |
tests: fix jifmux test
Need to pass a GstSample now for GST_TAG_APPLICATION_DATA
instead of a GstBuffer.
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/jifmux.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/check/elements/jifmux.c b/tests/check/elements/jifmux.c index 0f129086f..76f34578b 100644 --- a/tests/check/elements/jifmux.c +++ b/tests/check/elements/jifmux.c @@ -1020,6 +1020,7 @@ GST_START_TEST (test_jifmux_tags) GstTagList *taglist; GstDateTime *datetime; GstBuffer *buffer; + GstSample *sample; GstMapInfo map; gint i; @@ -1037,6 +1038,9 @@ GST_START_TEST (test_jifmux_tags) } gst_buffer_unmap (buffer, &map); + sample = gst_sample_new (buffer, NULL, NULL, NULL); + gst_buffer_unref (buffer); + taglist = gst_tag_list_new (GST_TAG_ARTIST, "some artist", GST_TAG_COPYRIGHT, "My copyright notice", GST_TAG_DEVICE_MANUFACTURER, "MyFavoriteBrand", @@ -1049,7 +1053,7 @@ GST_START_TEST (test_jifmux_tags) GST_TAG_CAPTURING_FOCAL_LENGTH, 22.5, GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO, 5.25, GST_TAG_CAPTURING_EXPOSURE_COMPENSATION, -2.5, - GST_TAG_APPLICATION_DATA, buffer, + GST_TAG_APPLICATION_DATA, sample, GST_TAG_CAPTURING_FLASH_FIRED, TRUE, GST_TAG_CAPTURING_FLASH_MODE, "auto", GST_TAG_CAPTURING_SOURCE, "dsc", @@ -1066,7 +1070,7 @@ GST_START_TEST (test_jifmux_tags) GST_TAG_IMAGE_HORIZONTAL_PPI, 300.0, GST_TAG_IMAGE_VERTICAL_PPI, 96.0, NULL); gst_date_time_unref (datetime); - gst_buffer_unref (buffer); + gst_sample_unref (sample); generate_jif_file_with_tags_from_taglist (taglist, tmpfile); libexif_check_tags_from_taglist (taglist, tmpfile); gst_tag_list_unref (taglist); |