mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 07:31:48 +00:00
fixed video syncing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3712 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6cbefb8b11
commit
ffde90d47e
@ -757,9 +757,11 @@ static int grab_video_frame(priv_t *priv, char *buffer, int len)
|
|||||||
mp_msg(MSGT_TV, MSGL_ERR, "ioctl mcapture failed: %s\n", strerror(errno));
|
mp_msg(MSGT_TV, MSGL_ERR, "ioctl mcapture failed: %s\n", strerror(errno));
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(priv->fd, VIDIOCSYNC, &priv->buf[frame].frame) == -1)
|
while (ioctl(priv->fd, VIDIOCSYNC, &priv->buf[frame].frame) < 0 &&
|
||||||
mp_msg(MSGT_TV, MSGL_ERR, "ioctl sync failed: %s\n", strerror(errno));
|
(errno == EAGAIN || errno == EINTR));
|
||||||
|
mp_dbg(MSGT_TV, MSGL_DBG3, "picture sync failed\n");
|
||||||
|
|
||||||
priv->queue++;
|
priv->queue++;
|
||||||
|
|
||||||
mp_dbg(MSGT_TV, MSGL_DBG3, "mmap: %p + offset: %d => %p\n",
|
mp_dbg(MSGT_TV, MSGL_DBG3, "mmap: %p + offset: %d => %p\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user