sh4 eplayer prevent segfaults caused audio rework

Origin commit data
------------------
Branch: master
Commit: 542419f788
Author: DboxOldie <dbo@ddt>
Date: 2020-02-16 (Sun, 16 Feb 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
DboxOldie
2020-02-16 19:52:10 +01:00
committed by vanhofen
parent bd1a6a2848
commit 5ec3c9e6f6
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)