[vlc-commits] cli: print player state at initialisation

Rémi Denis-Courmont git at videolan.org
Sat Oct 17 20:35:43 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 12:24:23 2020 +0300| [9de18ce172d466fa2c3fdc1c8f9a1eb9e8ef36c0] | committer: Rémi Denis-Courmont

cli: print player state at initialisation

Make sure the state of the player when the interface state is printed
before any other state update.

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

 modules/control/cli/player.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/control/cli/player.c b/modules/control/cli/player.c
index bdb9671ffd..4e147eb7fe 100644
--- a/modules/control/cli/player.c
+++ b/modules/control/cli/player.c
@@ -745,6 +745,7 @@ void *RegisterPlayer(intf_thread_t *intf)
         goto error;
     }
 
+    player_on_state_changed(player, vlc_player_GetState(player), intf);
     vlc_player_Unlock(player);
     return pc;
 



More information about the vlc-commits mailing list