From e88e802434eda4d09f08258be796ebfb374d6ca7 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 3 Nov 2022 17:11:43 +0100 Subject: [PATCH] Added explicit video player stops on SystemView cursor changes. --- es-app/src/views/SystemView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 04fcb77b2..133f1ad72 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -235,6 +235,11 @@ void SystemView::onCursorChanged(const CursorState& state) } } + if (mLastCursor >= 0 && mLastCursor <= static_cast(mSystemElements.size())) { + for (auto& video : mSystemElements[mLastCursor].videoComponents) + video->stopVideoPlayer(); + } + mLastCursor = cursor; for (auto& video : mSystemElements[cursor].videoComponents)