mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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)) ~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~
This commit is contained in:
parent
f04afa938f
commit
dc8181c12e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue