summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDave Palais <active.hat0408@fastmail.com>2022-09-22 08:54:15 -0500
committerGenei Shouko <date.aa2@gmail.com>2022-09-26 13:52:54 -0500
commit0c46068af0e9f077d3d68fe1dc647f99a55d7824 (patch)
treefce4c5b0e3ed2770386baa9468e714b71722468b /scene/gui
parent8e14f9ba21725a9445f3979742f2fc87c8a7b463 (diff)
Change time parameters and variables to double type
Addresses #65313
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/video_stream_player.cpp4
-rw-r--r--scene/gui/video_stream_player.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/video_stream_player.cpp b/scene/gui/video_stream_player.cpp
index 1e03ed6e76..0ea49b1645 100644
--- a/scene/gui/video_stream_player.cpp
+++ b/scene/gui/video_stream_player.cpp
@@ -381,14 +381,14 @@ String VideoStreamPlayer::get_stream_name() const {
return stream->get_name();
}
-float VideoStreamPlayer::get_stream_position() const {
+double VideoStreamPlayer::get_stream_position() const {
if (playback.is_null()) {
return 0;
}
return playback->get_playback_position();
}
-void VideoStreamPlayer::set_stream_position(float p_position) {
+void VideoStreamPlayer::set_stream_position(double p_position) {
if (playback.is_valid()) {
playback->seek(p_position);
}
diff --git a/scene/gui/video_stream_player.h b/scene/gui/video_stream_player.h
index 9974eb8488..b1ba8a65d7 100644
--- a/scene/gui/video_stream_player.h
+++ b/scene/gui/video_stream_player.h
@@ -105,8 +105,8 @@ public:
float get_volume_db() const;
String get_stream_name() const;
- float get_stream_position() const;
- void set_stream_position(float p_position);
+ double get_stream_position() const;
+ void set_stream_position(double p_position);
void set_autoplay(bool p_enable);
bool has_autoplay() const;