[vlc-commits] V4L2: don't whine in the logs on EINTR

Rémi Denis-Courmont git at videolan.org
Sun Jan 23 17:02:35 CET 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 23 17:45:14 2011 +0200| [17795d9f9405144d922f77a7a62f5fe8930f2d64] | committer: Rémi Denis-Courmont

V4L2: don't whine in the logs on EINTR

(cherry picked from commit 56cd0622eb3976ce055cc5dfb8b1ce480c60c438)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=17795d9f9405144d922f77a7a62f5fe8930f2d64
---

 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 c3cb584..02cf1a6 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -1293,7 +1293,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