summaryrefslogtreecommitdiff
path: root/sys/vdpau
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-08 18:56:06 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-08 18:56:06 +0100
commit6d7fcc6890c37889294f971ac0d49327da39b02b (patch)
tree30f33d382ba4835e251e4a98071ca54cf3af4d8a /sys/vdpau
parentcde8be156fdf5e1e3533199e4e4206ad61101360 (diff)
downloadgstreamer-plugins-bad-6d7fcc6890c37889294f971ac0d49327da39b02b.tar.gz
vdpau: Fix comparison compiler warning
error: comparison of constant -1 with expression of type 'const GstVideoFormat' is always false
Diffstat (limited to 'sys/vdpau')
-rw-r--r--sys/vdpau/gstvdpvideobufferpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vdpau/gstvdpvideobufferpool.c b/sys/vdpau/gstvdpvideobufferpool.c
index 039ebdba6..afdce1688 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;