X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Faudio_output%2Foss.c;h=3caf552ccfaf44e683c4fd7d1ca224bceba62d59;hb=c35ce64434d25909fd8ce18abc3d0df2a5ec9668;hp=3743488480df26cc43d3cf1a03ee1d90d581c0bd;hpb=e40d134c69b144327fd1d2001e8b85640f5c7cb9;p=vlc diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c index 3743488480..3caf552ccf 100644 --- a/modules/audio_output/oss.c +++ b/modules/audio_output/oss.c @@ -31,6 +31,10 @@ #include /* ioctl() */ #include /* write(), close() */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #ifdef HAVE_ALLOCA_H @@ -515,7 +519,7 @@ static int Open( vlc_object_t *p_this ) if( vlc_thread_create( p_aout, "aout", OSSThread, VLC_THREAD_PRIORITY_OUTPUT, VLC_FALSE ) ) { - msg_Err( p_aout, "cannot create OSS thread (%s)", strerror(errno) ); + msg_Err( p_aout, "cannot create OSS thread (%m)" ); close( p_sys->i_fd ); free( p_sys ); return VLC_ETHREAD; @@ -529,6 +533,7 @@ static int Open( vlc_object_t *p_this ) *****************************************************************************/ static void Play( aout_instance_t *p_aout ) { + VLC_UNUSED(p_aout); } /***************************************************************************** @@ -671,7 +676,7 @@ static int OSSThread( aout_instance_t * p_aout ) if( i_tmp < 0 ) { - msg_Err( p_aout, "write failed (%s)", strerror(errno) ); + msg_Err( p_aout, "write failed (%m)" ); } if ( p_buffer != NULL )