summaryrefslogtreecommitdiff
path: root/modules/theora
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-04-14 20:39:13 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-04-14 20:39:13 +0200
commitea46639e22b83ff18d7b85c67b732f6e82ae7df3 (patch)
tree1e2ba6990f077f78a0aabfe25e30f485fb3a8ed5 /modules/theora
parent9e0f87359b9ae596fa99022ccdad015bd74680ae (diff)
Print a warning when trying to seek in VideoPlayer
Seeking isn't implemented in built-in video formats and can only be supported in GDNative-provided video formats.
Diffstat (limited to 'modules/theora')
-rw-r--r--modules/theora/video_stream_theora.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp
index c5f6dc0d99..19f26c87cd 100644
--- a/modules/theora/video_stream_theora.cpp
+++ b/modules/theora/video_stream_theora.cpp
@@ -603,6 +603,7 @@ float VideoStreamPlaybackTheora::get_playback_position() const {
};
void VideoStreamPlaybackTheora::seek(float p_time) {
+ WARN_PRINT_ONCE("Seeking in Theora and WebM videos is not implemented yet (it's only supported for GDNative-provided video streams).");
}
void VideoStreamPlaybackTheora::set_mix_callback(AudioMixCallback p_callback, void *p_userdata) {