vdpau: Fix comparison compiler warning
error: comparison of constant -1 with expression of type 'const GstVideoFormat' is always false
This commit is contained in:
parent
cde8be156f
commit
6d7fcc6890
@ -70,7 +70,7 @@ gst_vdp_video_buffer_pool_set_config (GstBufferPool * pool,
|
|||||||
GST_LOG_OBJECT (pool, "%dx%d, caps %" GST_PTR_FORMAT, info.width, info.height,
|
GST_LOG_OBJECT (pool, "%dx%d, caps %" GST_PTR_FORMAT, info.width, info.height,
|
||||||
caps);
|
caps);
|
||||||
|
|
||||||
if (GST_VIDEO_INFO_FORMAT (&info) == -1)
|
if (GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_UNKNOWN)
|
||||||
goto unknown_format;
|
goto unknown_format;
|
||||||
|
|
||||||
vdppool->info = info;
|
vdppool->info = info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user