[vlc-devel] [PATCH 04/15] preparser: send PreparseEnded when input can't be created

Thomas Guillem thomas at gllm.fr
Thu Apr 14 17:44:53 CEST 2016


It's a not common case, input_CreatePreparser fails only in case of memory
allocation error.
---
 src/playlist/preparser.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index e0f6aa8..8c94819 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -186,7 +186,10 @@ static void Preparse( playlist_preparser_t *preparser, input_item_t *p_item,
         input_thread_t *input = input_CreatePreparser( preparser->object,
                                                        p_item );
         if( input == NULL )
+        {
+            input_item_SignalPreparseEnded( p_item );
             return;
+        }
 
         var_AddCallback( input, "intf-event", InputEvent,
                          &preparser->item_done );
-- 
2.8.0.rc3



More information about the vlc-devel mailing list