Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
118124a7
Commit
118124a7
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
PlayerController: prevent IllegalStateException
(cherry picked from commit
5245d311
)
parent
90c3f406
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5295
passed with stage
in 3 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
+1
-0
1 addition, 0 deletions
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
with
1 addition
and
0 deletions
vlc-android/src/org/videolan/vlc/media/PlayerController.kt
+
1
−
0
View file @
118124a7
...
...
@@ -226,6 +226,7 @@ class PlayerController(val context: Context) : IVLCVout.Callback, MediaPlayer.Ev
fun
getLength
()
=
progress
.
value
?.
length
?:
0L
fun
setRate
(
rate
:
Float
,
save
:
Boolean
)
{
if
(
mediaplayer
.
isReleased
)
return
mediaplayer
.
rate
=
rate
if
(
save
&&
settings
.
getBoolean
(
PreferencesActivity
.
KEY_PLAYBACK_SPEED_PERSIST
,
false
))
settings
.
edit
().
putFloat
(
PreferencesActivity
.
KEY_PLAYBACK_RATE
,
rate
).
apply
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment