mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
caps);
|
||||
|
||||
if (GST_VIDEO_INFO_FORMAT (&info) == -1)
|
||||
if (GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_UNKNOWN)
|
||||
goto unknown_format;
|
||||
|
||||
vdppool->info = info;
|
||||
|
|
Loading…
Reference in a new issue