[vlc-commits] player: input: fix wrong initialization

Thomas Guillem git at videolan.org
Sat Feb 29 10:15:42 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Feb 29 10:09:12 2020 +0100| [b3a24c9af3237d105787bedef7635db353fba7fb] | committer: Thomas Guillem

player: input: fix wrong initialization

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

 src/player/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/player/input.c b/src/player/input.c
index 13616279ab..4bed55ee2e 100644
--- a/src/player/input.c
+++ b/src/player/input.c
@@ -872,7 +872,7 @@ vlc_player_input_New(vlc_player_t *player, input_item_t *item)
     input->ml.states.current_title = -1;
     input->ml.states.current_video_track =
         input->ml.states.current_audio_track =
-        input->ml.states.current_subtitle_track = -2;
+        input->ml.states.current_subtitle_track = NULL;;
     input->ml.states.progress = -1.f;
     input->ml.restore = VLC_RESTOREPOINT_NONE;
     input->ml.restore_states = false;



More information about the vlc-commits mailing list