From 384743ff9ccb078750de9563d82a46e63b97f74f Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Thu, 19 Feb 2009 23:45:14 +0000 Subject: Fix pre-emption reinit. --- src/libvdpau/vdpau_h264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 7e57d405a..8a88dde13 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -752,6 +752,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre /* now check if vdpau has free decoder resource */ vo_frame_t *img = stream->video_out->get_frame( stream->video_out, 1920, 1080, 1, XINE_IMGFMT_VDPAU, VO_BOTH_FIELDS ); vdpau_accel_t *accel = (vdpau_accel_t*)img->accel_data; + int runtime_nr = accel->vdp_runtime_nr; img->free(img); VdpDecoder decoder; VdpStatus st = accel->vdp_decoder_create( accel->vdp_device, VDP_DECODER_PROFILE_H264_MAIN, 1920, 1080, 16, &decoder ); @@ -775,7 +776,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre this->class = (vdpau_h264_class_t *) class_gen; this->decoder = VDP_INVALID_HANDLE; - this->vdp_runtime_nr = 1; + this->vdp_runtime_nr = runtime_nr; this->color_standard = VDP_COLOR_STANDARD_ITUR_BT_601; this->nal_parser = init_parser(); -- cgit v1.2.3