[MPlayer-dev-eng] [PATCH] make teletext (vbi read) work with EINTR

Oldrich Jedlicka oldium.pro at seznam.cz
Mon Oct 15 21:14:32 CEST 2007


Hi all,

I figured out that mplayer 1.0_rc2 (installed from Gentoo ebuild) fails 
reading from /dev/vbi0 (teletext) with message:

vbi: expecting bytes: 65536, got: -1

so I extended the error report by strerror(errno) and the cause of the problem 
is an unhandled EINTR (affected files are stream/tvi_v4l.c, 
stream/tvi_v4l2.c). The patch (attached) is so trivial that I thing no more 
description is necessary - it handles EINTR in a while loop.

It works for me, finally I can enjoy the teletext feature.

If you have any questions, do not hesitate to ask.

Regards,
Oldrich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-vbi-read.patch
Type: text/x-diff
Size: 1278 bytes
Desc: Patch for read from VBI interrupted by EINTR
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071015/4eb081c2/attachment.patch>


More information about the MPlayer-dev-eng mailing list