Commit 5d2752c2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

DV: use vlc_strerror_c()

parent ea1648d1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment