2 * Copyright (C) 2005 Ross Burton <ross@burtonini.com>
4 * tags.c: Non-core tag registration
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
26 #include <gst/gst-i18n-plugin.h>
31 gst_tag_register_musicbrainz_tags_internal (gpointer unused)
34 GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
36 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
39 gst_tag_register (GST_TAG_MUSICBRAINZ_TRACKID, GST_TAG_FLAG_META,
40 G_TYPE_STRING, _("track ID"), _("MusicBrainz track ID"), NULL);
41 gst_tag_register (GST_TAG_MUSICBRAINZ_ARTISTID, GST_TAG_FLAG_META,
42 G_TYPE_STRING, _("artist ID"), _("MusicBrainz artist ID"), NULL);
43 gst_tag_register (GST_TAG_MUSICBRAINZ_ALBUMID, GST_TAG_FLAG_META,
44 G_TYPE_STRING, _("album ID"), _("MusicBrainz album ID"), NULL);
45 gst_tag_register (GST_TAG_MUSICBRAINZ_ALBUMARTISTID, GST_TAG_FLAG_META,
47 _("album artist ID"), _("MusicBrainz album artist ID"), NULL);
48 gst_tag_register (GST_TAG_MUSICBRAINZ_TRMID, GST_TAG_FLAG_META,
49 G_TYPE_STRING, _("track TRM ID"), _("MusicBrainz TRM ID"), NULL);
50 gst_tag_register (GST_TAG_MUSICBRAINZ_SORTNAME, GST_TAG_FLAG_META,
52 _("artist sortname"), _("MusicBrainz artist sortname"), NULL);
58 gst_tag_register_musicbrainz_tags (void)
60 static GOnce mb_once = G_ONCE_INIT;
62 g_once (&mb_once, gst_tag_register_musicbrainz_tags_internal, NULL);