summaryrefslogtreecommitdiff
path: root/src/video_dec/libvdpau/vdpau_h264.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_dec/libvdpau/vdpau_h264.c')
-rw-r--r--src/video_dec/libvdpau/vdpau_h264.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_dec/libvdpau/vdpau_h264.c b/src/video_dec/libvdpau/vdpau_h264.c
index 0f7a039f9..6341a1b9a 100644
--- a/src/video_dec/libvdpau/vdpau_h264.c
+++ b/src/video_dec/libvdpau/vdpau_h264.c
@@ -709,13 +709,12 @@ static void vdpau_h264_reset (video_decoder_t *this_gen) {
this->decoder = VDP_INVALID_HANDLE;
}
- free_parser(this->nal_parser);
+ reset_parser(this->nal_parser);
this->color_standard = VDP_COLOR_STANDARD_ITUR_BT_601;
this->wait_for_bottom_field = 0;
this->video_step = 0;
- this->nal_parser = init_parser(this->stream->xine);
if(this->codec_private_len > 0) {
parse_codec_private(this->nal_parser, this->codec_private, this->codec_private_len);