st/vdpau: invert interlaced buffer checks
authorChristian König <deathsimple@vodafone.de>
Sat, 24 Mar 2012 12:08:01 +0000 (13:08 +0100)
committerChristian König <deathsimple@vodafone.de>
Mon, 26 Mar 2012 10:39:40 +0000 (12:39 +0200)
That wasn't working as supposed.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/state_trackers/vdpau/decode.c

index 0802f28e5cc36cc9ae7228672e30a170e2a53ac4..6ffd17652b7e557c271c474d8fd61e5b5e8b5c72 100644 (file)
@@ -464,7 +464,7 @@ vlVdpDecoderRender(VdpDecoder decoder,
 
    if (vlsurf->video_buffer == NULL ||
        !screen->is_video_format_supported(screen, vlsurf->video_buffer->buffer_format, dec->profile) ||
-       buffer_support[vlsurf->video_buffer->interlaced]) {
+       !buffer_support[vlsurf->video_buffer->interlaced]) {
 
       /* destroy the old one */
       if (vlsurf->video_buffer)