1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 03:32:50 +00:00

Fixed a bug where seeking would lock mplayer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4610 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
mswitch 2002-02-09 14:44:09 +00:00
parent 420300295a
commit d0fa2231b3

View File

@ -105,6 +105,7 @@ uint32_t control(uint32_t request, void *data, ...)
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 @@ static uint32_t config(uint32_t scr_width, uint32_t scr_height, uint32_t width,
ioctl(fd_control, EM8300_IOCTL_WRITEREG, &reg);
/* 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);