summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2009-02-19 23:45:14 +0000
committerChristophe Thommeret <hftom@free.fr>2009-02-19 23:45:14 +0000
commit384743ff9ccb078750de9563d82a46e63b97f74f (patch)
tree34c4f2f41adb3e2ee8626ea65de324cd0d0e10af
parent55491cbc1b742aa6afde58c6c994efb59a5bf160 (diff)
downloadxine-lib-384743ff9ccb078750de9563d82a46e63b97f74f.tar.gz
xine-lib-384743ff9ccb078750de9563d82a46e63b97f74f.tar.bz2
Fix pre-emption reinit.
-rw-r--r--src/libvdpau/vdpau_h264.c3
1 files changed, 2 insertions, 1 deletions
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();