[vlc-devel] [PATCH 2/9] input: return an error if input_Read() was	interrupted
    Thomas Guillem 
    thomas at gllm.fr
       
    Wed Jun  1 13:24:46 CEST 2016
    
    
  
---
 src/input/input.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index effca97..2f4e18e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -149,7 +149,8 @@ int input_Read( input_thread_t *p_input, bool b_interrupt )
     if( b_interrupt )
         vlc_interrupt_set( NULL );
 
-    return VLC_SUCCESS;
+    /* Return an error if the input_Read was interrupted */
+    return input_Stopped( p_input ) ? VLC_EGENERIC : VLC_SUCCESS;
 }
 
 input_thread_t *input_CreatePreparser( vlc_object_t *parent,
-- 
2.8.1
    
    
More information about the vlc-devel
mailing list