From dc8181c12e59a4641dda8687f9969a50f9821c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 9 Feb 2015 10:20:37 +0100 Subject: [PATCH] video-converter: Fix compiler warnings by using the correct enum type video-converter.c:3645:24: error: implicit conversion from enumeration type 'GstFormat' to different enumeration type 'GstVideoFormat' [-Werror,-Wenum-conversion] convert->fformat = fformat; ~ ^~~~~~~ video-converter.c:3667:24: error: implicit conversion from enumeration type 'GstFormat' to different enumeration type 'GstVideoFormat' [-Werror,-Wenum-conversion] convert->fformat = fformat; ~ ^~~~~~~ video-converter.c:3963:50: error: implicit conversion from enumeration type 'const GstVideoFormat' to different enumeration type 'GstFormat' [-Werror,-Wenum-conversion] if (!setup_scale (convert, transforms[i].fformat)) ~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~ --- gst-libs/gst/video/video-converter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index 4951e1e092..a933a7cf42 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -3573,7 +3573,7 @@ convert_scale_planes (GstVideoConverter * convert, } static gboolean -setup_scale (GstVideoConverter * convert, GstFormat fformat) +setup_scale (GstVideoConverter * convert, GstVideoFormat fformat) { int i, n_planes; gint method, stride = 0, in_w, in_h, out_w, out_h;