diff libmpcodecs/dec_video.c @ 30378:8339bca8e4b4

Move the resync-related code into more consistent places instead of having it scattered all over the place with half of it forgotten in some places.
author reimar
date Sun, 24 Jan 2010 15:16:39 +0000
parents 8ee2eb34a851
children bbb6ebec87a0
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Sun Jan 24 12:55:05 2010 +0000
+++ b/libmpcodecs/dec_video.c	Sun Jan 24 15:16:39 2010 +0000
@@ -133,6 +133,10 @@
 
 void resync_video_stream(sh_video_t *sh_video)
 {
+    sh_video->timer = 0;
+    sh_video->next_frame_time = 0;
+    sh_video->num_buffered_pts = 0;
+    sh_video->last_pts = MP_NOPTS_VALUE;
     if(mpvdec) mpvdec->control(sh_video, VDCTRL_RESYNC_STREAM, NULL);
 }