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

Hugo Beauzée-Luyssen git at videolan.org
Fri Sep 18 15:24:06 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 17 14:32:15 2020 +0200| [42ff3d9040942ed339c19fe4fe24956a9119d906] | committer: Hugo Beauzée-Luyssen

player: Update medialib states for stopped inputs

This will also update the states for inputs that reach EOF, not only
those that are stopped manually

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

 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)



More information about the vlc-commits mailing list