[vlc-commits] Qt: set NowPlaying meta using fallback

Francois Cartegnie git at videolan.org
Tue Jan 31 17:22:47 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan 31 17:21:20 2017 +0100| [e66dd3187e557c364399fae1a6a13dcf953c2ca9] | committer: Francois Cartegnie

Qt: set NowPlaying meta using fallback

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

 modules/gui/qt/components/info_panels.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/info_panels.cpp b/modules/gui/qt/components/info_panels.cpp
index 15defe8..b771eb6 100644
--- a/modules/gui/qt/components/info_panels.cpp
+++ b/modules/gui/qt/components/info_panels.cpp
@@ -249,7 +249,6 @@ void MetaPanel::update( input_item_t *p_item )
     UPDATE_META( Description, description_text );
     CONNECT( description_text, textChanged(), this, enterEditMode() );
     UPDATE_META( Language, language_text );
-    UPDATE_META( NowPlaying, nowplaying_text );
     UPDATE_META( Publisher, publisher_text );
     UPDATE_META( EncodedBy, encodedby_text );
 
@@ -259,6 +258,12 @@ void MetaPanel::update( input_item_t *p_item )
 //    UPDATE_META( Setting, setting_text );
 //    UPDATE_META_INT( Rating, rating_text );
 
+    /* Now Playing || ES Now Playing */
+    psz_meta = input_item_GetNowPlayingFb( p_item );
+    if( !EMPTY_STR( psz_meta ) )
+        nowplaying_text->setText( qfu( psz_meta ) );
+    free( psz_meta );
+
     /* URL */
     psz_meta = input_item_GetURL( p_item );
     if( !EMPTY_STR( psz_meta ) )



More information about the vlc-commits mailing list