Skip to content

Commit 5ee76d2

Browse files
rename
1 parent 4cf7c86 commit 5ee76d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flutter_vlc_player/lib/src/vlc_player_controller.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,15 +532,15 @@ class VlcPlayerController extends ValueNotifier<VlcPlayerValue> {
532532
/// and silently clamped.
533533
Future<void> seekTo(Duration position) async {
534534
_throwIfNotInitialized('seekTo');
535-
final Duration correctPosition;
535+
final Duration newPosition;
536536
if (position > value.duration) {
537-
correctPosition = value.duration;
537+
newPosition = value.duration;
538538
} else if (position < Duration.zero) {
539-
correctPosition = Duration.zero;
539+
newPosition = Duration.zero;
540540
} else {
541-
correctPosition = position;
541+
newPosition = position;
542542
}
543-
await vlcPlayerPlatform.seekTo(_viewId, correctPosition);
543+
await vlcPlayerPlatform.seekTo(_viewId, newPosition);
544544
}
545545

546546
/// Get the video timestamp in millisecond

0 commit comments

Comments
 (0)