gsttaglist.h: Whoops, foreach function returns void. Also fix some constness.
authorAndy Wingo <wingo@pobox.com>
Sat, 19 Nov 2005 16:05:11 +0000 (16:05 +0000)
committerAndy Wingo <wingo@pobox.com>
Sat, 19 Nov 2005 16:05:11 +0000 (16:05 +0000)
Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gsttaglist.h: Whoops, foreach function returns void. Also fix
some constness.

ChangeLog
gst/gsttaglist.c
gst/gsttaglist.h

index 203c1ca..299ed6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-11-19  Andy Wingo  <wingo@pobox.com>
 
+       * gsttaglist.h: Whoops, foreach function returns void. Also fix
+       some constness.
+
        * gst/gsttaglist.c:
        * gst/gsttaglist.h (gst_tag_list_foreach): Operates on a const
        GstTagList*. Fixes #143472.
index ac45359..c41eebc 100644 (file)
@@ -777,7 +777,7 @@ gst_tag_list_remove_tag (GstTagList * list, const gchar * tag)
 typedef struct
 {
   GstTagForeachFunc func;
-  GstTagList *tag_list;
+  const GstTagList *tag_list;
   gpointer data;
 }
 TagForeachData;
index b1e5567..282b3d1 100644 (file)
@@ -64,13 +64,10 @@ typedef GstStructure GstTagList;
  *
  * A function that will be called in gst_tag_list_foreach(). The function may
  * not modify the tag list.
- *
- * Returns: TRUE if the foreach operation should continue, FALSE if
- * the foreach operation should stop with FALSE.
  */
-typedef gboolean (*GstTagForeachFunc) (const GstTagList *list,
-                                      const gchar * tag,
-                                      gpointer user_data);
+typedef void (*GstTagForeachFunc) (const GstTagList *list,
+                                  const gchar * tag,
+                                  gpointer user_data);
 
 typedef void           (* GstTagMergeFunc)     (GValue *dest, const GValue *src);