Made gst_vorbis_tag_add public
authorChristophe Fergeau <teuf@gnome.org>
Wed, 26 Nov 2003 23:17:50 +0000 (23:17 +0000)
committerChristophe Fergeau <teuf@gnome.org>
Wed, 26 Nov 2003 23:17:50 +0000 (23:17 +0000)
Original commit message from CVS:
Made gst_vorbis_tag_add public

gst/tags/gsttagediting.c
gst/tags/gsttagediting.h
gst/tags/gstvorbistag.c

index 00de40723b6e9dc29ddac9b01c4b0d6f5b734a5f..4f1b5891b78745d6d266047e853fbcbe08103af4 100644 (file)
@@ -1,7 +1,7 @@
 /* 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
index 8a0cc28600f1f249bda48edf831dee066354517b..be0e298754d05f3d26a57993b23835eb329646af 100644 (file)
@@ -30,6 +30,8 @@ G_BEGIN_DECLS
 
 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,
index c35b452120cf93ce4a8347a0d17d842fdb284d00..f0c8fff18f7d64fad478f6aa2a963c20ab09dbff 100644 (file)
@@ -26,6 +26,7 @@
 #include "gsttageditingprivate.h"
 #include <string.h>
 
+
 GST_DEBUG_CATEGORY_STATIC (gst_vorbis_tag_debug);
 #define GST_CAT_DEFAULT gst_vorbis_tag_debug
 
@@ -249,8 +250,10 @@ gst_tag_to_vorbis_tag (const gchar *gst_tag)
   }
   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);
   
@@ -365,7 +368,7 @@ gst_tag_list_from_vorbiscomment_buffer (const GstBuffer *buffer, const guint8 *i
       g_free (cur);
       continue;
     }
-    gst_tag_add (list, cur, value);
+    gst_vorbis_tag_add (list, cur, value);
     g_free (cur);
   }
   
@@ -496,7 +499,7 @@ gst_vorbis_tag_chain (GstPad *pad, GstData *data)
   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;