[vlc-commits] cli: fix locking is status command

Rémi Denis-Courmont git at videolan.org
Sun Nov 29 14:55:39 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 28 16:10:17 2020 +0200| [da50c06373fdbf0ee396626b630894c316ef3813] | committer: Rémi Denis-Courmont

cli: fix locking is status command

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

 modules/control/cli/player.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/cli/player.c b/modules/control/cli/player.c
index 4528475c2f..daedef4f9f 100644
--- a/modules/control/cli/player.c
+++ b/modules/control/cli/player.c
@@ -959,7 +959,7 @@ static int PlayerStatus(intf_thread_t *intf, const char *const *args,
     vlc_playlist_t *playlist = intf->p_sys->playlist;
     vlc_player_t *player = vlc_playlist_GetPlayer(playlist);
 
-    vlc_playlist_Lock(playlist);
+    vlc_player_Lock(player);
 
     input_item_t *item = vlc_player_GetCurrentMedia(player);
     if (item != NULL)
@@ -979,7 +979,7 @@ static int PlayerStatus(intf_thread_t *intf, const char *const *args,
 
     enum vlc_player_state state = vlc_player_GetState(player);
 
-    vlc_playlist_Unlock(playlist);
+    vlc_player_Unlock(player);
 
     int stnum = -1;
     const char *stname = "unknown";



More information about the vlc-commits mailing list