[vlc-devel] [PATCH] qt: pass player to vlc_strfinput

Thomas Guillem thomas at gllm.fr
Mon Jun 3 11:46:03 CEST 2019


---
 modules/gui/qt/components/player_controller.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/player_controller.cpp b/modules/gui/qt/components/player_controller.cpp
index bd77d3eac9..d64eaaee50 100644
--- a/modules/gui/qt/components/player_controller.cpp
+++ b/modules/gui/qt/components/player_controller.cpp
@@ -75,7 +75,9 @@ void PlayerControllerPrivate::UpdateName(input_item_t* media)
     char *formatted = NULL;
     if (format != NULL)
     {
-        formatted = vlc_strfinput( NULL, media, format );
+        vlc_player_Lock( m_player );
+        formatted = vlc_strfinput( m_player, media, format );
+        vlc_player_Unlock( m_player );
         free( format );
         if( formatted != NULL )
         {
-- 
2.20.1



More information about the vlc-devel mailing list