diff options
author | mswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-09 14:44:09 +0000 |
---|---|---|
committer | mswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-09 14:44:09 +0000 |
commit | d0fa2231b380995e6daf4bea34cbb80ce9f8200b (patch) | |
tree | bad9ef607e352efae9d43fa8348216f29088ab74 /libvo | |
parent | 420300295a91e2403a1bd534bb1aedf374ce9394 (diff) |
Fixed a bug where seeking would lock mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4610 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_dxr3.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c index 9f64e24868..e970e9afaf 100644 --- a/libvo/vo_dxr3.c +++ b/libvo/vo_dxr3.c @@ -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, ®); /* 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); |