summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVideo/PlaybackManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibVideo/PlaybackManager.cpp')
-rw-r--r--Userland/Libraries/LibVideo/PlaybackManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibVideo/PlaybackManager.cpp b/Userland/Libraries/LibVideo/PlaybackManager.cpp
index 4db877e1f2..bda97295b7 100644
--- a/Userland/Libraries/LibVideo/PlaybackManager.cpp
+++ b/Userland/Libraries/LibVideo/PlaybackManager.cpp
@@ -129,6 +129,10 @@ void PlaybackManager::dispatch_decoder_error(DecoderError error)
case DecoderErrorCategory::EndOfStream:
dbgln_if(PLAYBACK_MANAGER_DEBUG, "{}", error.string_literal());
TRY_OR_FATAL_ERROR(m_playback_handler->stop());
+
+ if (on_end_of_stream)
+ on_end_of_stream();
+
break;
default:
dbgln("Playback error encountered: {}", error.string_literal());