diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-08-02 17:07:37 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-08-02 17:07:37 +0300 |
commit | aa27e34331ebd6b2346d115abb4e62afed0e1a68 (patch) | |
tree | 63451fba125dd38c02ccf5b9aa64f31b58db90a5 /tests | |
parent | 9c596d20fe03896eb4817d11c35cfb45c83eaa94 (diff) | |
download | gstreamer-plugins-bad-aa27e34331ebd6b2346d115abb4e62afed0e1a68.tar.gz |
aiffparse: In PUSH mode we will never get the ID3 tags as they are at the end of the file
This previously did not fail as before we didn't get any tags at all in PUSH
mode, now we get the bitrates.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/aiffparse.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/check/elements/aiffparse.c b/tests/check/elements/aiffparse.c index ebf2028c6..5828ce14f 100644 --- a/tests/check/elements/aiffparse.c +++ b/tests/check/elements/aiffparse.c @@ -112,15 +112,21 @@ sink_event (GstPad * pad, GstObject * parent, GstEvent * event) gst_event_parse_tag (event, &aiff_tags); fail_unless (aiff_tags != NULL); + have_tags = TRUE; for (i = 0; i < sizeof (tags) / sizeof (*tags); i++) { buf = NULL; - fail_unless (gst_tag_list_get_string (aiff_tags, tags[i][0], &buf)); + if (!gst_tag_list_get_string (aiff_tags, tags[i][0], &buf)) { + have_tags = FALSE; + continue; + } ret = g_strcmp0 (buf, tags[i][1]); g_free (buf); - fail_unless (ret == 0); + if (ret != 0) { + have_tags = FALSE; + continue; + } } - have_tags = TRUE; break; } default: |