[vlc-devel] [PATCH] audiotrack: add errno.h for 'ETIMEDOUT'

Thomas Guillem thomas at gllm.fr
Thu Nov 7 13:54:00 CET 2019


Actually, this code doesn't need to test for the ETIMEDOUT value.
It should be done like this:

-            while( p_sys->b_thread_running && i_ret != ETIMEDOUT )
+            while( p_sys->b_thread_running && i_ret == 0 )


On Thu, Nov 7, 2019, at 13:31, quinkblack at foxmail.com wrote:
> From: Zhao Zhili <quinkblack at foxmail.com>
> 
> ---
>  modules/audio_output/audiotrack.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/modules/audio_output/audiotrack.c 
> b/modules/audio_output/audiotrack.c
> index 8b153e0ad0..7ae55a41ba 100644
> --- a/modules/audio_output/audiotrack.c
> +++ b/modules/audio_output/audiotrack.c
> @@ -29,6 +29,7 @@
>  #include <jni.h>
>  #include <dlfcn.h>
>  #include <stdbool.h>
> +#include <errno.h>
>  
>  #include <vlc_common.h>
>  #include <vlc_plugin.h>
> -- 
> 2.23.0
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list