Update of /cvsroot/mplayer/main/libvo In directory mplayer:/var/tmp.root/cvs-serv10150/libvo Modified Files: vo_dxr3.c Log Message: Fixed a bug where seeking would lock mplayer Index: vo_dxr3.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- vo_dxr3.c 9 Feb 2002 14:27:24 -0000 1.51 +++ vo_dxr3.c 9 Feb 2002 14:44:09 -0000 1.52 @@ -105,6 +105,7 @@ if (!noprebuf) { close(fd_video); fd_video = open(fdv_name, O_WRONLY); + fsync(fd_video); } return VO_TRUE; case VOCTRL_QUERY_FORMAT: @@ -165,6 +166,10 @@ ioctl(fd_control, EM8300_IOCTL_WRITEREG, ®); /* Clean buffer by syncing it */ + ioval = EM8300_SUBDEVICE_VIDEO; + ioctl(fd_control, EM8300_IOCTL_FLUSH, &ioval); + ioval = EM8300_SUBDEVICE_AUDIO; + ioctl(fd_control, EM8300_IOCTL_FLUSH, &ioval); fsync(fd_video); ioval = 0x900; ioctl(fd_control, EM8300_IOCTL_SCR_SETSPEED, &ioval);
participants (1)
-
David Holm