From f8e63966ad133d51815d02d672706b297d6d6f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 19 Jul 2006 12:25:00 +0000 Subject: [PATCH] gst-libs/gst/tag/gstid3tag.c: Add TSSE <=> GST_TAG_ENCODER mapping (see #347898). Original commit message from CVS: * gst-libs/gst/tag/gstid3tag.c: Add TSSE <=> GST_TAG_ENCODER mapping (see #347898). * gst-libs/gst/tag/gsttageditingprivate.h: * gst-libs/gst/tag/gstvorbistag.c: Some more random const-ifications. --- ChangeLog | 9 +++++++++ gst-libs/gst/tag/gstid3tag.c | 5 +++-- gst-libs/gst/tag/gsttageditingprivate.h | 4 ++-- gst-libs/gst/tag/gstvorbistag.c | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f2c2a45ff..ab76b1c01c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-07-19 Tim-Philipp Müller + + * gst-libs/gst/tag/gstid3tag.c: + Add TSSE <=> GST_TAG_ENCODER mapping (see #347898). + + * gst-libs/gst/tag/gsttageditingprivate.h: + * gst-libs/gst/tag/gstvorbistag.c: + Some more random const-ifications. + 2006-07-18 Stefan Kost * gst-libs/gst/riff/riff-ids.h: diff --git a/gst-libs/gst/tag/gstid3tag.c b/gst-libs/gst/tag/gstid3tag.c index 112b439aac..58925becc6 100644 --- a/gst-libs/gst/tag/gstid3tag.c +++ b/gst-libs/gst/tag/gstid3tag.c @@ -192,7 +192,7 @@ static const gchar *genres[] = { "Synthpop" }; -static GstTagEntryMatch tag_matches[] = { +static const GstTagEntryMatch tag_matches[] = { {GST_TAG_TITLE, "TIT2"}, {GST_TAG_ALBUM, "TALB"}, {GST_TAG_TRACK_NUMBER, "TRCK"}, @@ -205,6 +205,7 @@ static GstTagEntryMatch tag_matches[] = { {GST_TAG_DURATION, "TLEN"}, {GST_TAG_ISRC, "TSRC"}, {GST_TAG_IMAGE, "APIC"}, + {GST_TAG_ENCODER, "TSSE"}, {NULL, NULL} }; @@ -236,7 +237,7 @@ gst_tag_from_id3_tag (const gchar * id3_tag) return NULL; } -static GstTagEntryMatch user_tag_matches[] = { +static const GstTagEntryMatch user_tag_matches[] = { /* musicbrainz identifiers being used in the real world (foobar2000) */ {GST_TAG_MUSICBRAINZ_ARTISTID, "TXXX|musicbrainz_artistid"}, {GST_TAG_MUSICBRAINZ_ALBUMID, "TXXX|musicbrainz_albumid"}, diff --git a/gst-libs/gst/tag/gsttageditingprivate.h b/gst-libs/gst/tag/gsttageditingprivate.h index 23a638e102..04275230f8 100644 --- a/gst-libs/gst/tag/gsttageditingprivate.h +++ b/gst-libs/gst/tag/gsttageditingprivate.h @@ -28,8 +28,8 @@ G_BEGIN_DECLS typedef struct _GstTagEntryMatch GstTagEntryMatch; struct _GstTagEntryMatch { - gchar * gstreamer_tag; - gchar * original_tag; + const gchar * gstreamer_tag; + const gchar * original_tag; }; diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index e6b7e284e2..841e94da7a 100644 --- a/gst-libs/gst/tag/gstvorbistag.c +++ b/gst-libs/gst/tag/gstvorbistag.c @@ -41,7 +41,7 @@ #include #include -static GstTagEntryMatch tag_matches[] = { +static const GstTagEntryMatch tag_matches[] = { {GST_TAG_TITLE, "TITLE"}, {GST_TAG_VERSION, "VERSION"}, {GST_TAG_ALBUM, "ALBUM"},