diff options
-rw-r--r-- | src/libvdpau/vdpau_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 5ca120b04..0559c66d7 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -230,7 +230,7 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, img->bad_frame = 0; /* create surface if needed */ - if(this->vdpau_accel->surface == 0) { + if(this->vdpau_accel->surface == VDP_INVALID_HANDLE) { VdpStatus status = this->vdpau_accel->vdp_video_surface_create(this->vdpau_accel->vdp_device, VDP_YCBCR_FORMAT_YV12, this->width, this->height, &this->vdpau_accel->surface); |