Commit 4ffadb37 authored by Christophe Fergeau's avatar Christophe Fergeau
Browse files

Made gst_vorbis_tag_add public

Original commit message from CVS:
Made gst_vorbis_tag_add public
parent e286156c
/* 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
......
......@@ -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,
......
......@@ -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;
......
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