mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed an issue where videos would sometimes not play when exiting the media viewer.
This commit is contained in:
parent
ccb4c19d78
commit
9b395d6526
|
@ -55,9 +55,9 @@ bool MediaViewer::startMediaViewer(FileData* game)
|
||||||
void MediaViewer::stopMediaViewer()
|
void MediaViewer::stopMediaViewer()
|
||||||
{
|
{
|
||||||
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
|
ViewController::get()->onStopVideo();
|
||||||
|
|
||||||
if (mVideo) {
|
if (mVideo) {
|
||||||
ViewController::get()->onStopVideo();
|
|
||||||
delete mVideo;
|
delete mVideo;
|
||||||
mVideo = nullptr;
|
mVideo = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue