diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-02-06 16:29:30 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-02-06 16:29:30 +0000 |
commit | 2a873dd98e5d8c0800ae85030fea8a420da2da32 (patch) | |
tree | f392840648a2f4bad4b858a443f227571cfbba84 /gst/smpte/gstsmpte.c | |
parent | 7dd530e6c4a1c581fc16afa0e65b97bf619b7f75 (diff) |
gst/smpte/gstsmpte.c: Let's try this again and use the right cast this time.
Original commit message from CVS:
* gst/smpte/gstsmpte.c: (gst_smpte_transition_type_get_type):
Let's try this again and use the right cast this time.
Diffstat (limited to 'gst/smpte/gstsmpte.c')
-rw-r--r-- | gst/smpte/gstsmpte.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index eb5a50ad..44420ac8 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -146,8 +146,9 @@ gst_smpte_transition_type_get_type (void) definitions = g_list_next (definitions); smpte_transitions[i].value = definition->type; - smpte_transitions[i].value_nick = (const gchar *) definition->short_name; - smpte_transitions[i].value_name = (const gchar *) definition->long_name; + /* older GLib versions have the two fields as non-const, hence the cast */ + smpte_transitions[i].value_nick = (gchar *) definition->short_name; + smpte_transitions[i].value_name = (gchar *) definition->long_name; i++; } |