]> git.sesse.net Git - vlc/commitdiff
macosx: update metadata in info panel if metadata changes
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 23 Nov 2014 20:18:57 +0000 (21:18 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 23 Nov 2014 20:19:39 +0000 (21:19 +0100)
modules/gui/macosx/intf.m
modules/gui/macosx/playlistinfo.h
modules/gui/macosx/playlistinfo.m

index 2f85aefa84d194205756c78b1d21033426054cea..9d10bd136fb2eaaa2a5557d9115acb4ac8168735 100644 (file)
@@ -1345,6 +1345,9 @@ static bool f_appExit = false;
 - (void)plItemUpdated
 {
     [o_mainwindow updateName];
+
+    if (o_info != NULL)
+        [o_info updateMetadata];
 }
 
 - (void)updateMainMenu
index 8deb36f75994b6d53c0811ac30e588b8a7c385a5..5574cf87cbe035289c48e02942299a4aa57a54c4 100644 (file)
 - (void)initMediaPanelStats;
 - (void)updatePanelWithItem:(input_item_t *)_p_item;
 - (void)setMeta: (char *)meta forLabel: (id)theItem;
+- (void)updateMetadata;
 - (void)updateStatistics;
 
 + (VLCInfo *)sharedInstance;
index bbf00ba752110720bbe4d03381751ed434ae571c..9ec4cf5cebb49edae7eee60275f605fdf24de08f 100644 (file)
@@ -179,6 +179,14 @@ static VLCInfo *_o_sharedInstance = nil;
 
 }
 
+- (void)updateMetadata
+{
+    if (!p_item)
+        return;
+
+    [self updatePanelWithItem:p_item];
+}
+
 - (void)updatePanelWithItem:(input_item_t *)_p_item;
 {
     NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];