[0.11] gstreamer: taglist: avoid exposing the lists in tags

Wim Taymans wtay at kemper.freedesktop.org
Tue Jan 3 05:43:28 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 9c312fce484e78fa6828e59b3735efa357112532
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9c312fce484e78fa6828e59b3735efa357112532

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jan  3 14:43:05 2012 +0100

taglist: avoid exposing the lists in tags

---

 gst/gsttaglist.c |   19 -------------------
 gst/gsttaglist.h |    4 ----
 2 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index ff5ee48..8c1f693 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -1403,25 +1403,6 @@ gst_tag_list_copy_value (GValue * dest, const GstTagList * list,
   return TRUE;
 }
 
-/**
- * gst_tag_list_get_value:
- * @list: list to get the tag from
- * @tag: tag to read out
- *
- * Get the value for the given tag.
- *
- * Returns: The #GValue for @tag.
- */
-const GValue *
-gst_tag_list_get_value (const GstTagList * list, const gchar * tag)
-{
-  g_return_val_if_fail (GST_IS_TAG_LIST (list), NULL);
-  g_return_val_if_fail (tag != NULL, NULL);
-
-  return gst_structure_get_value ((GstStructure *) list, tag);
-}
-
-
 /* FIXME 0.11: this whole merge function business is overdesigned, and the
  * _get_foo() API is misleading as well - how many application developers will
  * expect gst_tag_list_get_string (list, GST_TAG_ARTIST, &val) might return a
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index c075978..00a2770 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -257,10 +257,6 @@ gboolean     gst_tag_list_copy_value        (GValue           * dest,
                                              const gchar      * tag);
 
 /* simplifications (FIXME: do we want them?) */
-const GValue *
-             gst_tag_list_get_value         (const GstTagList * list,
-                                             const gchar      * tag);
-
 gboolean     gst_tag_list_get_boolean       (const GstTagList * list,
                                              const gchar      * tag,
                                              gboolean         * value);



More information about the gstreamer-commits mailing list