[vlc-commits] DV: remove impossible EAGAIN error on poll()

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:14:44 2011 +0200| [9f8a21b28e2edd0fc792e74446696d8e051347dd] | committer: Rémi Denis-Courmont

DV: remove impossible EAGAIN error on poll()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f8a21b28e2edd0fc792e74446696d8e051347dd
---

 modules/access/dv.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/access/dv.c b/modules/access/dv.c
index 9f48561..db6680b 100644
--- a/modules/access/dv.c
+++ b/modules/access/dv.c
@@ -343,11 +343,8 @@ static void* Raw1394EventThread( vlc_object_t *p_this )
     {
         while( ( result = poll( &(p_sys->raw1394_poll), 1, 200 ) ) < 0 )
         {
-            if( !( errno == EAGAIN || errno == EINTR ) )
-            {
-                perror( "error: raw1394 poll" );
-                msg_Err( p_access, "retrying device raw1394" );
-            }
+            if( errno != EINTR )
+                msg_Err( p_access, "poll error: %m" );
         }
         if( !vlc_object_alive (p_sys->p_ev) )
                 break;



More information about the vlc-commits mailing list