diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-24 15:16:39 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-24 15:16:39 +0000 |
commit | 71dcc053fe61841201abe1034a86eae863197c48 (patch) | |
tree | 295ae2ca646e5bfa6b4f42edc68e15645b6eb214 /libmpcodecs/dec_video.c | |
parent | 213092c8dcfc925d8d54cf320b60cf298a870696 (diff) | |
download | mpv-71dcc053fe61841201abe1034a86eae863197c48.tar.bz2 mpv-71dcc053fe61841201abe1034a86eae863197c48.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30420 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r-- | libmpcodecs/dec_video.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 6d9eb97074..6cc2ddd55e 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -133,6 +133,10 @@ int set_rectangle(sh_video_t *sh_video,int param,int value) 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); } |