/* GStreamer
* Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
*
- * gstoggplugins.c: register ogg plugins
+ * gsttagediting.c: tag editing plugin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
+void gst_vorbis_tag_add (GstTagList *list, const gchar *tag, const gchar *value);
+
/* functions to convert GstBuffers with vorbiscomment contents to GstTagLists and back */
GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
const guint8 * id_data,
#include "gsttageditingprivate.h"
#include <string.h>
+
GST_DEBUG_CATEGORY_STATIC (gst_vorbis_tag_debug);
#define GST_CAT_DEFAULT gst_vorbis_tag_debug
}
return NULL;
}
-static void
-gst_tag_add (GstTagList *list, const gchar *tag, const gchar *value)
+
+
+void
+gst_vorbis_tag_add (GstTagList *list, const gchar *tag, const gchar *value)
{
const gchar *gst_tag = gst_tag_from_vorbis_tag (tag);
g_free (cur);
continue;
}
- gst_tag_add (list, cur, value);
+ gst_vorbis_tag_add (list, cur, value);
g_free (cur);
}
if (tag->output == OUTPUT_UNKNOWN) {
/* caps nego */
do {
- if (gst_pad_try_set_caps (tag->srcpad, GST_CAPS_NEW ("vorbis_tag_data_src", "application/x-vorbis", NULL)) >= 0) {
+ if (gst_pad_try_set_caps (tag->srcpad, GST_CAPS_NEW ("vorbis_tag_data_src", "audio/x-vorbis", NULL)) >= 0) {
tag->output = OUTPUT_DATA;
} else if (gst_pad_try_set_caps (tag->srcpad, GST_CAPS_NEW ("vorbis_tag_tag_src", "application/x-gst-tags", NULL)) >= 0) {
tag->output = OUTPUT_TAGS;