[vlc-commits] preparser: send PreparseEnded when input can't be created

Thomas Guillem git at videolan.org
Sun Apr 17 07:22:31 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Apr 14 15:18:41 2016 +0200| [dfa111dce85b50c7ee5c172905f2bec87b9e4743] | committer: Thomas Guillem

preparser: send PreparseEnded when input can't be created

It's a not common case, input_CreatePreparser fails only in case of memory
allocation error.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfa111dce85b50c7ee5c172905f2bec87b9e4743
---

 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 );



More information about the vlc-commits mailing list