mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Added explicit video player stops on SystemView cursor changes.
This commit is contained in:
parent
246fd307b6
commit
e88e802434
|
@ -235,6 +235,11 @@ void SystemView::onCursorChanged(const CursorState& state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mLastCursor >= 0 && mLastCursor <= static_cast<int>(mSystemElements.size())) {
|
||||||
|
for (auto& video : mSystemElements[mLastCursor].videoComponents)
|
||||||
|
video->stopVideoPlayer();
|
||||||
|
}
|
||||||
|
|
||||||
mLastCursor = cursor;
|
mLastCursor = cursor;
|
||||||
|
|
||||||
for (auto& video : mSystemElements[cursor].videoComponents)
|
for (auto& video : mSystemElements[cursor].videoComponents)
|
||||||
|
|
Loading…
Reference in a new issue