From 7dd530e6c4a1c581fc16afa0e65b97bf619b7f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 6 Feb 2007 16:24:57 +0000 Subject: [PATCH] gst/smpte/gstsmpte.c: Add cast to avoid compiler warnings with older GLib versions where the nick/name members in GEn... 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 | 7 +++++++ gst/smpte/gstsmpte.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf5d9ad596..232d798352 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-02-06 Tim-Philipp Müller + + * 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 * ext/gconf/gconf.c: (gst_gconf_get_key_for_sink_profile), diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 95fd31e264..eb5a50ad72 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -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++; }