[vlc-commits] DV: use vlc_strerror_c()

Rémi Denis-Courmont git at videolan.org
Sun Dec 29 15:16:27 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 28 19:04:53 2013 +0200| [5d2752c20698c361d839400c7664c8c92211db1e] | committer: Rémi Denis-Courmont

DV: use vlc_strerror_c()

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

 modules/access/dv.c |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/modules/access/dv.c b/modules/access/dv.c
index 3913f6c..5fa6b69 100644
--- a/modules/access/dv.c
+++ b/modules/access/dv.c
@@ -339,7 +339,7 @@ static void* Raw1394EventThread( void *obj )
         while( ( result = poll( &p_sys->raw1394_poll, 1, -1 ) ) < 0 )
         {
             if( errno != EINTR )
-                msg_Err( p_access, "poll error: %m" );
+                msg_Err( p_access, "poll error: %s", vlc_strerror_c(errno) );
         }
 
         if( result > 0 && ( ( p_sys->raw1394_poll.revents & POLLIN )
@@ -451,13 +451,15 @@ static int Raw1394GetNumPorts( access_t *p_access )
     /* get a raw1394 handle */
     if( !( handle = raw1394_new_handle() ) )
     {
-        msg_Err( p_access, "raw1394 - failed to get handle: %m." );
+        msg_Err( p_access, "raw1394 - failed to get handle: %s",
+                 vlc_strerror_c(errno) );
         return VLC_EGENERIC;
     }
 
     if( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to get port info: %m." );
+        msg_Err( p_access, "raw1394 - failed to get port info: %s",
+                 vlc_strerror_c(errno) );
         raw1394_destroy_handle( handle );
         return VLC_EGENERIC;
     }
@@ -476,13 +478,15 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
     handle = raw1394_new_handle();
     if( !handle )
     {
-        msg_Err( p_access, "raw1394 - failed to get handle: %m." );
+        msg_Err( p_access, "raw1394 - failed to get handle: %s",
+                 vlc_strerror_c(errno) );
         return NULL;
     }
 
     if( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to get port info: %m." );
+        msg_Err( p_access, "raw1394 - failed to get port info: %s",
+                 vlc_strerror_c(errno) );
         raw1394_destroy_handle( handle );
         return NULL;
     }
@@ -490,7 +494,8 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
     /* tell raw1394 which host adapter to use */
     if( raw1394_set_port( handle, port ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to set set port: %m." );
+        msg_Err( p_access, "raw1394 - failed to set set port: %s",
+                 vlc_strerror_c(errno) );
         return NULL;
     }
 



More information about the vlc-commits mailing list