diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-05-28 10:39:00 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-05-28 10:39:00 +0000 |
commit | c4b1e8e4aedc9971c1352a85ce2d1cc7da775c8d (patch) | |
tree | 49aa1867c1dad8d91009a84f6bc2277a7bbf0ca4 /tests | |
parent | e4bb4b892f6cadfb7abdb3e02de5168a5e5e89cb (diff) |
ext/taglib/gstid3v2mux.cc: Handle writing of track-count or album-volume-count without track-number or albume-volume...
Original commit message from CVS:
* ext/taglib/gstid3v2mux.cc:
Handle writing of track-count or album-volume-count without
track-number or albume-volume-number (in this case the number
will just be set to 0).
* tests/check/elements/id3v2mux.c: (test_taglib_id3mux_check_tags):
It would be nice if we actually checked the values received for
track/album-volume number/count in _check_tags(), rather than
setting them again ...
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/id3v2mux.c | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/tests/check/elements/id3v2mux.c b/tests/check/elements/id3v2mux.c index f8024350..73b527f0 100644 --- a/tests/check/elements/id3v2mux.c +++ b/tests/check/elements/id3v2mux.c @@ -136,25 +136,45 @@ test_taglib_id3mux_check_tags (GstTagList * tags, guint32 mask) g_date_free (date); } if (mask & (1 << 4)) { - gst_tag_list_add (tags, GST_TAG_MERGE_KEEP, - GST_TAG_TRACK_NUMBER, TEST_TRACK_NUMBER, NULL); + guint num; + + fail_unless (gst_tag_list_get_uint (tags, GST_TAG_TRACK_NUMBER, &num)); + fail_unless (num == TEST_TRACK_NUMBER); } if (mask & (1 << 5)) { - gst_tag_list_add (tags, GST_TAG_MERGE_KEEP, - GST_TAG_TRACK_COUNT, TEST_TRACK_COUNT, NULL); + guint count; + + fail_unless (gst_tag_list_get_uint (tags, GST_TAG_TRACK_COUNT, &count)); + fail_unless (count == TEST_TRACK_COUNT); } if (mask & (1 << 6)) { - gst_tag_list_add (tags, GST_TAG_MERGE_KEEP, - GST_TAG_ALBUM_VOLUME_NUMBER, TEST_VOLUME_NUMBER, NULL); + guint num; + + fail_unless (gst_tag_list_get_uint (tags, GST_TAG_ALBUM_VOLUME_NUMBER, + &num)); + fail_unless (num == TEST_VOLUME_NUMBER); } if (mask & (1 << 7)) { - gst_tag_list_add (tags, GST_TAG_MERGE_KEEP, - GST_TAG_ALBUM_VOLUME_COUNT, TEST_VOLUME_COUNT, NULL); + guint count; + + fail_unless (gst_tag_list_get_uint (tags, GST_TAG_ALBUM_VOLUME_COUNT, + &count)); + fail_unless (count == TEST_VOLUME_COUNT); } +#if 0 if (mask & (1 << 8)) { + gdouble gain; + + fail_unless (gst_tag_list_get_double (tags, GST_TAG_TRACK_GAIN, &gain)); + fail_unless (gain == TEST_TRACK_GAIN); } if (mask & (1 << 9)) { + gdouble gain; + + fail_unless (gst_tag_list_get_double (tags, GST_TAG_ALBUM_GAIN, &gain)); + fail_unless (gain == TEST_ALBUM_GAIN); } +#endif if (mask & (1 << 10)) { } if (mask & (1 << 11)) { |