sh4 eplayer prevent segfaults caused audio rework

This commit is contained in:
DboxOldie
2020-02-16 19:52:10 +01:00
committed by Thilo Graf
parent 480d23dc30
commit 67110fb054
2 changed files with 10 additions and 8 deletions

View File

@@ -349,7 +349,7 @@ bool Player::SwitchVideo(int pid)
bool Player::SwitchAudio(int pid)
{
Track *track = manager.getAudioTrack(pid);
return input.SwitchAudio(track);
return track ? input.SwitchAudio(track) : false;
}
bool Player::SwitchSubtitle(int pid)