Commit 91184d4a authored by Carola Nitz's avatar Carola Nitz

VLCMetadata: Show data in Miniplayer even when passcode is enabled

Before we would immediatly return, now we return before populating the
infocenter

closes #511
parent 06badd83
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#if TARGET_OS_IOS #if TARGET_OS_IOS
- (void)updateMetadataFromMedia:(VLCMLMedia *)media mediaPlayer:(VLCMediaPlayer*)mediaPlayer - (void)updateMetadataFromMedia:(VLCMLMedia *)media mediaPlayer:(VLCMediaPlayer*)mediaPlayer
{ {
if ([VLCKeychainCoordinator passcodeLockEnabled]) return;
if (media) { if (media) {
self.title = media.title; self.title = media.title;
self.artist = media.albumTrack.artist.name; self.artist = media.albumTrack.artist.name;
...@@ -61,6 +60,9 @@ ...@@ -61,6 +60,9 @@
} }
[self updatePlaybackRate:mediaPlayer]; [self updatePlaybackRate:mediaPlayer];
//Down here because we still need to populate the miniplayer
if ([VLCKeychainCoordinator passcodeLockEnabled]) return;
[self populateInfoCenterFromMetadata]; [self populateInfoCenterFromMetadata];
} }
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment