diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-27 10:04:10 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-27 10:04:10 +0200 |
commit | 7562932eb2f863a659136f2f25064c5a4c3e5929 (patch) | |
tree | 4b94c27d8ee72d1de864da49ad2f9b4056393bb2 /scene/gui | |
parent | 809927862b2efc2ea7830d0f11a5b1bc3a23acb1 (diff) | |
parent | 0c46068af0e9f077d3d68fe1dc647f99a55d7824 (diff) |
Merge pull request #66160 from dpalais/double_time
Use double instead of real_t type for time-related parameters and variables
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/video_stream_player.cpp | 4 | ||||
-rw-r--r-- | scene/gui/video_stream_player.h | 4 |
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; |