Commit b1edd9ed authored by Winston Weinert's avatar Winston Weinert Committed by Felix Paul Kühne

Accurately discern in VLCMediaController#isPlaying if playing.

This solves issue with VLC for iOS where the playback button is
set to "playing" when the playback state is paused while high-speed
scrubbing is used. After some quick and dirty performance testing,
I did not notice a difference between using _cachedState or
checking directly.
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 006f3761
......@@ -1018,9 +1018,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
- (BOOL)isPlaying
{
VLCMediaPlayerState state = [self state];
return ((state == VLCMediaPlayerStateOpening) || (state == VLCMediaPlayerStateBuffering) ||
(state == VLCMediaPlayerStatePlaying));
return libvlc_media_player_is_playing(_playerInstance);
}
- (BOOL)willPlay
......
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