[vlc-devel] [PATCH] player: Update medialib states for stopped inputs

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Sep 17 14:33:32 CEST 2020


This will also update the states for inputs that reach EOF, not only
those that are stopped manually
---
 src/player/player.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/player/player.c b/src/player/player.c
index 6ad82acd7e..669df87649 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -219,7 +219,6 @@ vlc_player_destructor_Thread(void *data)
                                          VLC_TICK_INVALID);
             vlc_player_destructor_AddStoppingInput(player, input);
 
-            vlc_player_UpdateMLStates(player, input);
             input_Stop(input->thread);
         }
 
@@ -228,6 +227,8 @@ vlc_player_destructor_Thread(void *data)
             !vlc_list_is_empty(&player->destructor.joinable_inputs);
         vlc_list_foreach(input, &player->destructor.joinable_inputs, node)
         {
+            vlc_player_UpdateMLStates(player, input);
+
             keep_sout = var_GetBool(input->thread, "sout-keep");
 
             if (input->state == VLC_PLAYER_STATE_STOPPING)
-- 
2.20.1



More information about the vlc-devel mailing list