mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
4fb0095898
commit
b680671374
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue