tag: Explicit cast to GThreadFunc to silence MS compiler.
authorHaakon Sporsheim <haakon.sporsheim@gmail.com>
Mon, 4 Apr 2011 15:23:13 +0000 (17:23 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 4 Apr 2011 22:14:20 +0000 (23:14 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=646744

gst-libs/gst/tag/gstxmptag.c

index dce3e41..6c424ba 100644 (file)
@@ -837,7 +837,7 @@ deserialize_tiff_orientation (XmpTag * xmptag, GstTagList * taglist,
  * http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/XMP.html
  */
 static gpointer
-_init_xmp_tag_map ()
+_init_xmp_tag_map (gpointer user_data)
 {
   GPtrArray *array;
   XmpTag *xmpinfo;
@@ -984,7 +984,7 @@ static void
 xmp_tags_initialize ()
 {
   static GOnce my_once = G_ONCE_INIT;
-  g_once (&my_once, _init_xmp_tag_map, NULL);
+  g_once (&my_once, (GThreadFunc)_init_xmp_tag_map, NULL);
 }
 
 typedef struct _GstXmpNamespaceMatch GstXmpNamespaceMatch;