[vlc-commits] playlist_legacy: fix assert if splitter module is missing
Thomas Guillem
git at videolan.org
Thu Feb 21 09:30:05 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Feb 20 17:38:56 2019 +0100| [04379469fc45bd5663786f37f12426833f0de435] | committer: Thomas Guillem
playlist_legacy: fix assert if splitter module is missing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04379469fc45bd5663786f37f12426833f0de435
---
src/playlist_legacy/engine.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/playlist_legacy/engine.c b/src/playlist_legacy/engine.c
index 2ffe0980f2..59a6611a11 100644
--- a/src/playlist_legacy/engine.c
+++ b/src/playlist_legacy/engine.c
@@ -432,8 +432,11 @@ static void VariablesInit( playlist_t *p_playlist )
var_Create( p_playlist, "rate-faster", VLC_VAR_VOID );
var_AddCallback( p_playlist, "rate-faster", RateOffsetCallback, NULL );
- var_Create( p_playlist, "video-splitter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- var_AddCallback( p_playlist, "video-splitter", VideoSplitterCallback, NULL );
+ if (config_GetType("video-splitter"))
+ {
+ var_Create( p_playlist, "video-splitter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
+ var_AddCallback( p_playlist, "video-splitter", VideoSplitterCallback, NULL );
+ }
var_Create( p_playlist, "video-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Create( p_playlist, "sub-source", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
More information about the vlc-commits
mailing list