mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
video-converter: Fix compiler warnings
video-converter.c:3073:48: 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:3081:44: error: implicit conversion from enumeration type 'GstFormat' to different enumeration type 'GstVideoFormat' [-Werror,-Wenum-conversion] gst_video_scaler_vertical (v_scaler, format, lines, d, i, out_w); ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~ video-converter.c:3137:24: error: implicit conversion from enumeration type 'const GstVideoFormat' to different enumeration type 'GstFormat' [-Werror,-Wenum-conversion] convert->fformat = GST_VIDEO_INFO_FORMAT (in_info); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gst-libs/gst/video/video-info.h:125:43: note: expanded from macro 'GST_VIDEO_INFO_FORMAT' ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gst-libs/gst/video/video-format.h:361:59: note: expanded from macro 'GST_VIDEO_FORMAT_INFO_FORMAT' ~~~~~~~~^~~~~~ video-converter.c:3157:24: error: implicit conversion from enumeration type 'GstVideoFormat' to different enumeration type 'GstFormat' [-Werror,-Wenum-conversion] convert->fformat = GST_VIDEO_FORMAT_GRAY8;
This commit is contained in:
parent
46e141067f
commit
4e44f37abd
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ struct _GstVideoConverter
|
||||||
GstVideoFrame *dest;
|
GstVideoFrame *dest;
|
||||||
|
|
||||||
/* fastpath */
|
/* fastpath */
|
||||||
GstFormat fformat;
|
GstVideoFormat fformat;
|
||||||
GstVideoScaler *fh_scaler[4];
|
GstVideoScaler *fh_scaler[4];
|
||||||
GstVideoScaler *fv_scaler[4];
|
GstVideoScaler *fv_scaler[4];
|
||||||
ConverterAlloc *flines;
|
ConverterAlloc *flines;
|
||||||
|
@ -3041,7 +3041,7 @@ convert_scale_planes (GstVideoConverter * convert,
|
||||||
const GstVideoFrame * src, GstVideoFrame * dest)
|
const GstVideoFrame * src, GstVideoFrame * dest)
|
||||||
{
|
{
|
||||||
int k, n_planes;
|
int k, n_planes;
|
||||||
GstFormat format = convert->fformat;
|
GstVideoFormat format = convert->fformat;
|
||||||
|
|
||||||
n_planes = GST_VIDEO_FRAME_N_PLANES (src);
|
n_planes = GST_VIDEO_FRAME_N_PLANES (src);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue