Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
adfef784
Commit
adfef784
authored
Jan 26, 2018
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic fail & no need to unset video track
parent
74e7f6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
+1
-2
No files found.
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
View file @
adfef784
...
...
@@ -43,7 +43,7 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
}
fun
pause
():
Boolean
{
if
(!
mediaplayer
.
hasMedia
()
&&
!
pausable
)
return
false
if
(!
mediaplayer
.
hasMedia
()
||
!
pausable
)
return
false
mediaplayer
.
pause
()
return
true
}
...
...
@@ -155,7 +155,6 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
fun
release
(
player
:
MediaPlayer
=
mediaplayer
)
{
player
.
setEventListener
(
null
)
player
.
setVideoTrackEnabled
(
false
)
if
(
isVideoPlaying
())
player
.
vlcVout
.
detachViews
()
launch
(
playerContext
)
{
player
.
release
()
}
playbackState
=
PlaybackStateCompat
.
STATE_STOPPED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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