[vlc-commits] V4L2: don't whine in the logs on EINTR
Rémi Denis-Courmont
git at videolan.org
Sun Jan 23 16:49:22 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 23 17:45:14 2011 +0200| [56cd0622eb3976ce055cc5dfb8b1ce480c60c438] | committer: Rémi Denis-Courmont
V4L2: don't whine in the logs on EINTR
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56cd0622eb3976ce055cc5dfb8b1ce480c60c438
---
modules/access/v4l2.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index 5a5c888..0654e4a 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -1288,7 +1288,8 @@ static ssize_t AccessReadStream( access_t * p_access, uint8_t * p_buffer, size_t
if( i_ret < 0 )
{
- msg_Err( p_access, "Polling error (%m)." );
+ if( errno != EINTR )
+ msg_Err( p_access, "poll error" );
return -1;
}
More information about the vlc-commits
mailing list