[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.33,1.34

David Holm mswitch at mplayer.dev.hu
Thu Jan 17 20:24:44 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv29018/libvo

Modified Files:
	vo_dxr3.c 
Log Message:
Fixed seeking


Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- vo_dxr3.c	17 Jan 2002 10:33:47 -0000	1.33
+++ vo_dxr3.c	17 Jan 2002 19:24:33 -0000	1.34
@@ -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
 }
 




More information about the MPlayer-cvslog mailing list