Made gst_vorbis_tag_add public
Original commit message from CVS: Made gst_vorbis_tag_add public
This commit is contained in:
parent
e286156c66
commit
4ffadb378e
@ -1,7 +1,7 @@
|
|||||||
/* GStreamer
|
/* GStreamer
|
||||||
* Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
* 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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* 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_from_vorbis_tag (const gchar * vorbis_tag);
|
||||||
G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_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 */
|
/* functions to convert GstBuffers with vorbiscomment contents to GstTagLists and back */
|
||||||
GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
|
GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
|
||||||
const guint8 * id_data,
|
const guint8 * id_data,
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "gsttageditingprivate.h"
|
#include "gsttageditingprivate.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_vorbis_tag_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_vorbis_tag_debug);
|
||||||
#define GST_CAT_DEFAULT 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;
|
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);
|
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);
|
g_free (cur);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gst_tag_add (list, cur, value);
|
gst_vorbis_tag_add (list, cur, value);
|
||||||
g_free (cur);
|
g_free (cur);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -496,7 +499,7 @@ gst_vorbis_tag_chain (GstPad *pad, GstData *data)
|
|||||||
if (tag->output == OUTPUT_UNKNOWN) {
|
if (tag->output == OUTPUT_UNKNOWN) {
|
||||||
/* caps nego */
|
/* caps nego */
|
||||||
do {
|
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;
|
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) {
|
} 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;
|
tag->output = OUTPUT_TAGS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user