From 6d7fcc6890c37889294f971ac0d49327da39b02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 8 Feb 2014 18:56:06 +0100 Subject: [PATCH] vdpau: Fix comparison compiler warning error: comparison of constant -1 with expression of type 'const GstVideoFormat' is always false --- sys/vdpau/gstvdpvideobufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vdpau/gstvdpvideobufferpool.c b/sys/vdpau/gstvdpvideobufferpool.c index 039ebdba64..afdce16883 100644 --- a/sys/vdpau/gstvdpvideobufferpool.c +++ b/sys/vdpau/gstvdpvideobufferpool.c @@ -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;