summaryrefslogtreecommitdiff
path: root/src/video_dec/libvdpau/vdpau_vc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_dec/libvdpau/vdpau_vc1.c')
-rw-r--r--src/video_dec/libvdpau/vdpau_vc1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_dec/libvdpau/vdpau_vc1.c b/src/video_dec/libvdpau/vdpau_vc1.c
index 2a46086d6..52db4f964 100644
--- a/src/video_dec/libvdpau/vdpau_vc1.c
+++ b/src/video_dec/libvdpau/vdpau_vc1.c
@@ -25,6 +25,9 @@
/*#define LOG*/
#define LOG_MODULE "vdpau_vc1"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -1078,7 +1081,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
VdpStatus st = accel->vdp_decoder_create( accel->vdp_device, VDP_DECODER_PROFILE_VC1_MAIN, 1920, 1080, 2, &decoder );
if ( st!=VDP_STATUS_OK ) {
lprintf( "can't create vdpau decoder.\n" );
- return 1;
+ return NULL;
}
accel->vdp_decoder_destroy( decoder );