summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_vdpau.c5
-rw-r--r--src/xine-engine/accel_vdpau.h1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c
index 7e7026080..4f5b7d73e 100644
--- a/src/video_out/video_out_vdpau.c
+++ b/src/video_out/video_out_vdpau.c
@@ -412,7 +412,6 @@ static vo_frame_t *vdpau_alloc_frame (vo_driver_t *this_gen)
frame->vdpau_accel_data.vdp_device = vdp_device;
frame->vdpau_accel_data.surface = VDP_INVALID_HANDLE;
frame->vdpau_accel_data.vdp_video_surface_create = vdp_video_surface_create;
- frame->vdpau_accel_data.vdp_video_surface_destroy = vdp_video_surface_destroy;
frame->vdpau_accel_data.vdp_decoder_create = vdp_decoder_create;
frame->vdpau_accel_data.vdp_decoder_destroy = vdp_decoder_destroy;
frame->vdpau_accel_data.vdp_decoder_render = vdp_decoder_render;
@@ -722,8 +721,8 @@ static int vdpau_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *
case XINE_GUI_SEND_EXPOSE_EVENT: {
if ( this->init_queue ) {
- int previous = this->current_output_surface ^ 1;
XLockDisplay( this->display );
+ int previous = this->current_output_surface ^ 1;
vdp_queue_display( vdp_queue, this->output_surface[previous], 0, 0, 0 );
XUnlockDisplay( this->display );
}
@@ -739,11 +738,13 @@ static int vdpau_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *
st = vdp_queue_target_create_x11( vdp_device, this->drawable, &vdp_queue_target );
if ( st != VDP_STATUS_OK ) {
printf( "vo_vdpau: FATAL !! Can't recreate presentation queue target after drawable change !!\n" );
+ XUnlockDisplay( this->display );
break;
}
st = vdp_queue_create( vdp_device, vdp_queue_target, &vdp_queue );
if ( st != VDP_STATUS_OK ) {
printf( "vo_vdpau: FATAL !! Can't recreate presentation queue after drawable change !!\n" );
+ XUnlockDisplay( this->display );
break;
}
VdpColor backColor;
diff --git a/src/xine-engine/accel_vdpau.h b/src/xine-engine/accel_vdpau.h
index f5b80e4d4..73965abc2 100644
--- a/src/xine-engine/accel_vdpau.h
+++ b/src/xine-engine/accel_vdpau.h
@@ -43,7 +43,6 @@ typedef struct {
VdpGetErrorString *vdp_get_error_string;
VdpVideoSurfaceCreate *vdp_video_surface_create;
- VdpVideoSurfaceDestroy *vdp_video_surface_destroy;
VdpDecoderCreate *vdp_decoder_create;
VdpDecoderDestroy *vdp_decoder_destroy;
VdpDecoderRender *vdp_decoder_render;