From 39e5906704211082c8a00d4a30fd02e138c11c36 Mon Sep 17 00:00:00 2001 From: voroshil Date: Tue, 16 Oct 2007 01:53:34 +0000 Subject: After receiving EINTR 'read' syscall should be restarted. Fixes receiving teletext on some systems. Modified patch from Oldrich Jedlicka oldium dot pro at aenam dot cz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24791 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_v4l.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream/tvi_v4l.c') diff --git a/stream/tvi_v4l.c b/stream/tvi_v4l.c index c21e13475e..ee1ae60c07 100644 --- a/stream/tvi_v4l.c +++ b/stream/tvi_v4l.c @@ -867,6 +867,8 @@ static void *vbi_grabber(void *data) while (!priv->vbi_shutdown){ bytes=read(priv->vbi_fd,buf,tsp.bufsize); + if(bytes<0 && errno==EINTR) + continue; if (bytes!=tsp.bufsize){ mp_msg(MSGT_TV,MSGL_WARN,"vbi: expecting bytes: %d, got: %d",tsp.bufsize,bytes); break; -- cgit v1.2.3