diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 03610444e..5836ac7a2 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -52,6 +52,9 @@ void SystemView::onShow() void SystemView::onHide() { + if (mPrimary == nullptr || mPrimary->getCursor() > static_cast(mSystemElements.size() - 1)) + return; + for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents) video->stopVideoPlayer(false); }