video-converter: Use correct enum type to fix compiler warnings with clang

video-converter.c:3406:12: error: implicit conversion from enumeration type 'GstVideoFormat' to different
      enumeration type 'GstFormat' [-Werror,-Wenum-conversion]
  format = convert->fformat[plane];
         ~ ^~~~~~~~~~~~~~~~~~~~~~~
video-converter.c:3413:44: error: implicit conversion from enumeration type 'GstFormat' to different enumeration
      type 'GstVideoFormat' [-Werror,-Wenum-conversion]
    gst_video_scaler_horizontal (h_scaler, format,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~
video-converter.c:3471:12: error: implicit conversion from enumeration type 'GstVideoFormat' to different
      enumeration type 'GstFormat' [-Werror,-Wenum-conversion]
  format = convert->fformat[plane];
         ~ ^~~~~~~~~~~~~~~~~~~~~~~
video-converter.c:3487:42: error: implicit conversion from enumeration type 'GstFormat' to different enumeration
      type 'GstVideoFormat' [-Werror,-Wenum-conversion]
    gst_video_scaler_vertical (v_scaler, format, lines, d + out_x, i,
    ~~~~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~
video-converter.c:3551:12: error: implicit conversion from enumeration type 'GstVideoFormat' to different
      enumeration type 'GstFormat' [-Werror,-Wenum-conversion]
  format = convert->fformat[plane];
         ~ ^~~~~~~~~~~~~~~~~~~~~~~
video-converter.c:3569:46: error: implicit conversion from enumeration type 'GstFormat' to different enumeration
      type 'GstVideoFormat' [-Werror,-Wenum-conversion]
      gst_video_scaler_horizontal (h_scaler, format,
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~
video-converter.c:3577:42: error: implicit conversion from enumeration type 'GstFormat' to different enumeration
      type 'GstVideoFormat' [-Werror,-Wenum-conversion]
    gst_video_scaler_vertical (v_scaler, format, lines, d + out_x, i,
    ~~~~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~
This commit is contained in:
Sebastian Dröge 2015-02-10 16:38:05 +01:00
parent 4fb0095898
commit b680671374

View file

@ -3392,7 +3392,7 @@ convert_plane_h (GstVideoConverter * convert,
{
gint i;
gint in_x, in_y, out_x, out_y, out_width, out_height;
GstFormat format;
GstVideoFormat format;
GstVideoScaler *h_scaler;
guint8 *s, *d;
gint splane = convert->fsplane[plane];
@ -3457,7 +3457,7 @@ convert_plane_v (GstVideoConverter * convert,
{
gint i;
gint in_x, in_y, out_x, out_y, out_width, out_height;
GstFormat format;
GstVideoFormat format;
GstVideoScaler *v_scaler;
gpointer *lines;
gint splane = convert->fsplane[plane];
@ -3536,7 +3536,7 @@ convert_plane_hv (GstVideoConverter * convert,
{
gint i, tmp_in;
gint in_x, in_y, out_x, out_y, out_width, out_height;
GstFormat format;
GstVideoFormat format;
GstVideoScaler *h_scaler, *v_scaler;
ConverterAlloc *alloc;
gpointer *lines;