[vlc-devel] [PATCH 02/12] decoder: update error state when vout creation fails

Thomas Guillem thomas at gllm.fr
Thu Jun 9 11:51:54 CEST 2016


---
 src/input/decoder.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 054d9c7..3509643 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -342,6 +342,7 @@ static int vout_update_format( decoder_t *p_dec )
             !p_dec->fmt_out.video.i_height )
         {
             /* Can't create a new vout without display size */
+            decoder_SetErrorGeneric( p_dec );
             return -1;
         }
 
@@ -443,6 +444,7 @@ static int vout_update_format( decoder_t *p_dec )
         if( p_vout == NULL )
         {
             msg_Err( p_dec, "failed to create video output" );
+            decoder_AddState( p_dec, DECODER_STATE_ERROR_OUTPUT );
             return -1;
         }
     }
-- 
2.8.1



More information about the vlc-devel mailing list