video-scaler: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Mon, 3 Nov 2014 07:12:44 +0000 (08:12 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 3 Nov 2014 07:12:44 +0000 (08:12 +0100)
video-scaler.c:151:58: error: implicit conversion from enumeration type
      'GstVideoScalerFlags' to different enumeration type
      'GstVideoResamplerFlags' [-Werror,-Wenum-conversion]
    gst_video_resampler_init (&scale->resampler, method, flags, out_size,
    ~~~~~~~~~~~~~~~~~~~~~~~~                             ^~~~~

gst-libs/gst/video/video-scaler.c

index e87fe10..5891579 100644 (file)
@@ -148,8 +148,9 @@ gst_video_scaler_new (GstVideoResamplerMethod method, GstVideoScalerFlags flags,
     gst_video_resampler_clear (&tresamp);
     gst_video_resampler_clear (&bresamp);
   } else {
-    gst_video_resampler_init (&scale->resampler, method, flags, out_size,
-        n_taps, 0.0, in_size, out_size, options);
+    gst_video_resampler_init (&scale->resampler, method,
+        GST_VIDEO_RESAMPLER_FLAG_NONE, out_size, n_taps, 0.0, in_size, out_size,
+        options);
   }
 
   if (out_size == 1)