[vlc-devel] [PATCH 4/5] playlist_legacy: fix assert if splitter module is missing
Thomas Guillem
thomas at gllm.fr
Wed Feb 20 17:39:58 CET 2019
---
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 );
--
2.20.1
More information about the vlc-devel
mailing list