Commit dab74483 authored by Samuel Giddins's avatar Samuel Giddins Committed by Carola Nitz

Centralize logic for calling displayMetadataForPlaybackController into one method

parent 459c13d2
......@@ -1160,8 +1160,7 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
dispatch_async(dispatch_get_main_queue(), ^{
[self->_metadata updateMetadataFromMediaPlayer:self->_mediaPlayer];
self->_needsMetadataUpdate = NO;
if ([self.delegate respondsToSelector:@selector(displayMetadataForPlaybackController:metadata:)])
[self.delegate displayMetadataForPlaybackController:self metadata:self->_metadata];
[self recoverDisplayedMetadata];
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