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
@ -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…
x
Reference in New Issue
Block a user