[vlc-commits] macosx/info panel: reload if parsing succeeded
Felix Paul Kühne
git at videolan.org
Mon Jul 1 17:06:15 CEST 2019
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Mon Jul 1 17:06:06 2019 +0200| [79d9d52cd7d552f622b151dbaf8cffd698976c13] | committer: Felix Paul Kühne
macosx/info panel: reload if parsing succeeded
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79d9d52cd7d552f622b151dbaf8cffd698976c13
---
modules/gui/macosx/panels/VLCInformationWindowController.m | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/modules/gui/macosx/panels/VLCInformationWindowController.m b/modules/gui/macosx/panels/VLCInformationWindowController.m
index f2508bbf42..9a2d295596 100644
--- a/modules/gui/macosx/panels/VLCInformationWindowController.m
+++ b/modules/gui/macosx/panels/VLCInformationWindowController.m
@@ -98,6 +98,14 @@
selector:@selector(updateCocoaWindowLevel:)
name:VLCWindowShouldUpdateLevel
object:nil];
+ [notificationCenter addObserver:self
+ selector:@selector(mediaItemWasParsed:)
+ name:VLCInputItemParsingSucceeded
+ object:nil];
+ [notificationCenter addObserver:self
+ selector:@selector(mediaItemWasParsed:)
+ name:VLCInputItemPreparsingSucceeded
+ object:nil];
[notificationCenter postNotificationName:VLCPlayerStatisticsUpdated object:self];
@@ -207,6 +215,11 @@
[self updateRepresentation];
}
+- (void)mediaItemWasParsed:(NSNotification *)aNotification
+{
+ [self updateRepresentation];
+}
+
- (void)updateStatistics:(NSNotification *)aNotification
{
if (!_statisticsEnabled)
More information about the vlc-commits
mailing list