Commit 054e43aa authored by Jason Kivlighn's avatar Jason Kivlighn Committed by Tim-Philipp Müller

Map ID3v2 WCOP frame to GST_TAG_COPYRIGHT_URI (#447000).

Original commit message from CVS:
Patch by: Jason Kivlighn  <jkivlighn gmail com>
* gst-libs/gst/tag/gstid3tag.c:
* tests/check/libs/tag.c:
Map ID3v2 WCOP frame to GST_TAG_COPYRIGHT_URI (#447000).
parent 8458a745
2007-10-11 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Jason Kivlighn <jkivlighn gmail com>
* gst-libs/gst/tag/gstid3tag.c:
* tests/check/libs/tag.c:
Map ID3v2 WCOP frame to GST_TAG_COPYRIGHT_URI (#447000).
2007-10-10 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/tag/gsttagdemux.c:
......@@ -199,6 +199,7 @@ static const GstTagEntryMatch tag_matches[] = {
{GST_TAG_ARTIST, "TPE1"},
{GST_TAG_COMPOSER, "TCOM"},
{GST_TAG_COPYRIGHT, "TCOP"},
{GST_TAG_COPYRIGHT_URI, "WCOP"},
{GST_TAG_GENRE, "TCON"},
{GST_TAG_DATE, "TDRC"},
{GST_TAG_COMMENT, "COMM"},
......
......@@ -582,6 +582,8 @@ GST_START_TEST (test_id3_tags)
fail_unless (gst_tag_from_id3_tag ("TALB") != NULL);
ASSERT_CRITICAL (gst_tag_from_id3_tag (NULL));
fail_unless (gst_tag_from_id3_tag ("R2D2") == NULL);
fail_unless_equals_string (gst_tag_from_id3_tag ("WCOP"),
GST_TAG_COPYRIGHT_URI);
/* gst_tag_from_id3_user_tag */
ASSERT_CRITICAL (gst_tag_from_id3_user_tag (NULL, "foo"));
......@@ -592,7 +594,8 @@ GST_START_TEST (test_id3_tags)
ASSERT_CRITICAL (gst_tag_to_id3_tag (NULL));
fail_unless (gst_tag_to_id3_tag ("R2D2") == NULL);
fail_unless (gst_tag_to_id3_tag (GST_TAG_ARTIST) != NULL);
fail_unless_equals_string (gst_tag_to_id3_tag (GST_TAG_COPYRIGHT_URI),
"WCOP");
fail_unless (GST_TYPE_TAG_IMAGE_TYPE != 0);
fail_unless (g_type_name (GST_TYPE_TAG_IMAGE_TYPE) != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment