[vlc-commits] preparser: fix segfault if input_Start fails
Thomas Guillem
git at videolan.org
Thu Jul 12 15:52:39 CEST 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 12 15:47:16 2018 +0200| [971d23216d39a40fe64c43e8ec31ad9c87ca2ffc] | committer: Thomas Guillem
preparser: fix segfault if input_Start fails
PS: This function is very unlikely to fail (only if vlc_clone fails).
(cherry picked from commit e86e9e59c2dd243fd3780f7791fba57b2ca9d65e)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=971d23216d39a40fe64c43e8ec31ad9c87ca2ffc
---
src/playlist/preparser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index 1122dd7cef..661b2122e1 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -64,8 +64,8 @@ static int PreparserOpenInput( void* preparser_, void* item_, void** out )
var_AddCallback( input, "intf-event", InputEvent, preparser->worker );
if( input_Start( input ) )
{
- input_Close( input );
var_DelCallback( input, "intf-event", InputEvent, preparser->worker );
+ input_Close( input );
input_item_SignalPreparseEnded( item_, ITEM_PREPARSE_FAILED );
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list