Mercurial > mplayer.hg
changeset 4219:70888f501b4a
Fixed seeking
author | mswitch |
---|---|
date | Thu, 17 Jan 2002 19:24:33 +0000 |
parents | 3931c41f740a |
children | fe2c20d52a25 |
files | libvo/vo_dxr3.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dxr3.c Thu Jan 17 10:33:47 2002 +0000 +++ b/libvo/vo_dxr3.c Thu Jan 17 19:24:33 2002 +0000 @@ -7,7 +7,7 @@ /* ChangeLog added 2002-01-10 * 2002-01-17: - * Testrelease of new sync engine (using previously undocumented feature of em8300). Seeking does not work with this one! + * Testrelease of new sync engine (using previously undocumented feature of em8300). * * 2002-01-15: * Preliminary subpic support with -vc mpegpes and dvd's @@ -449,9 +449,13 @@ static void flip_page(void) { static int prev_pts = 0; + /* Flush the device if a seek occured */ if (prev_pts > vo_pts) { - printf("WARNING: Seeking will break a/v sync currently\n"); + printf("\nWARNING: Seeking may or may not break a/v sync (sometimes seeking again helps)\n"); + ioval = EM8300_SUBDEVICE_VIDEO; + ioctl(fd_control, EM8300_IOCTL_FLUSH, &ioval); } + prev_pts = vo_pts; #ifdef USE_MP1E if (img_format == IMGFMT_YV12) { mp1e_buffer.data = picture_data[0]; @@ -464,7 +468,6 @@ mp1e_buffer.user_data = NULL; rte_push_video_buffer(mp1e_context, &mp1e_buffer); } - prev_pts = vo_pts; #endif }