[vlc-commits] qt: pass player to vlc_strfinput
Thomas Guillem
git at videolan.org
Mon Jun 3 16:16:46 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 3 11:45:40 2019 +0200| [33951846d7f211466f4d998929ad0191f26883f4] | committer: Thomas Guillem
qt: pass player to vlc_strfinput
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33951846d7f211466f4d998929ad0191f26883f4
---
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 )
{
More information about the vlc-commits
mailing list