diff options
author | mswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 19:24:33 +0000 |
---|---|---|
committer | mswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 19:24:33 +0000 |
commit | 9870d682a4140bb918c92ebd9359f2d8df987a65 (patch) | |
tree | 9d8adb798483c0cddde229e51033c17507178288 /libvo | |
parent | 94d8b9131db618a014d6d58ba3080e9597cae297 (diff) | |
download | mpv-9870d682a4140bb918c92ebd9359f2d8df987a65.tar.bz2 mpv-9870d682a4140bb918c92ebd9359f2d8df987a65.tar.xz |
Fixed seeking
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4220 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_dxr3.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c index 5b98850049..f26cca337e 100644 --- a/libvo/vo_dxr3.c +++ b/libvo/vo_dxr3.c @@ -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 uint32_t draw_frame(uint8_t * src[]) 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 @@ static void flip_page(void) mp1e_buffer.user_data = NULL; rte_push_video_buffer(mp1e_context, &mp1e_buffer); } - prev_pts = vo_pts; #endif } |