gst/smpte/gstsmpte.c: Add cast to avoid compiler warnings with older GLib versions...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 6 Feb 2007 16:24:57 +0000 (16:24 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 6 Feb 2007 16:24:57 +0000 (16:24 +0000)
Original commit message from CVS:
* gst/smpte/gstsmpte.c: (gst_smpte_transition_type_get_type):
Add cast to avoid compiler warnings with older GLib versions
where the nick/name members in GEnumValue are not declared as
constant strings.

ChangeLog
gst/smpte/gstsmpte.c

index bf5d9ad..232d798 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2007-02-06  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * gst/smpte/gstsmpte.c: (gst_smpte_transition_type_get_type):
+         Add cast to avoid compiler warnings with older GLib versions
+         where the nick/name members in GEnumValue are not declared as
+         constant strings.
+
+2007-02-06  Tim-Philipp Müller  <tim at centricular dot net>
+
        * ext/gconf/gconf.c: (gst_gconf_get_key_for_sink_profile),
        (gst_gconf_render_bin_from_key),
        (gst_gconf_get_default_audio_sink):
index 95fd31e..eb5a50a 100644 (file)
@@ -146,8 +146,8 @@ gst_smpte_transition_type_get_type (void)
       definitions = g_list_next (definitions);
 
       smpte_transitions[i].value = definition->type;
-      smpte_transitions[i].value_nick = definition->short_name;
-      smpte_transitions[i].value_name = definition->long_name;
+      smpte_transitions[i].value_nick = (const gchar *) definition->short_name;
+      smpte_transitions[i].value_name = (const gchar *) definition->long_name;
 
       i++;
     }