Commit 439865a9 authored by Carola's avatar Carola

Only call pause when the player is playing. (close #11993)

parent f9e8e97a
......@@ -1415,7 +1415,7 @@
NSArray *outputs = [[AVAudioSession sharedInstance] currentRoute].outputs;
NSString *portName = [[outputs objectAtIndex:0] portName];
if (![portName isEqualToString:@"Headphones"])
if (![portName isEqualToString:@"Headphones"] && [_mediaPlayer isPlaying])
[_listPlayer pause];
}
......
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