Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
439865a9
Commit
439865a9
authored
Aug 19, 2014
by
Carola
Browse files
Only call pause when the player is playing. (close #11993)
parent
f9e8e97a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCMovieViewController.m
View file @
439865a9
...
...
@@ -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
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment