lfocontrolsource: explicitly cast to the enum type
authorJosep Torra <n770galaxy@gmail.com>
Thu, 25 Aug 2011 21:53:58 +0000 (23:53 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 26 Aug 2011 12:11:15 +0000 (14:11 +0200)
Fixes warning #188: enumerated type mixed with another type reported by ICC.

libs/gst/controller/gstlfocontrolsource.c

index f2c6d6b..46061e4 100644 (file)
@@ -969,7 +969,8 @@ gst_lfo_control_source_set_property (GObject * object, guint prop_id,
   switch (prop_id) {
     case PROP_WAVEFORM:
       g_mutex_lock (self->lock);
-      gst_lfo_control_source_set_waveform (self, g_value_get_enum (value));
+      gst_lfo_control_source_set_waveform (self,
+          (GstLFOWaveform) g_value_get_enum (value));
       g_mutex_unlock (self->lock);
       break;
     case PROP_FREQUENCY:{