mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Add various checks trying to avoid various crashes found in Google Play crash reports.
This commit is contained in:
1 parent
0c3f6afeef
commit
841e4c8564
8 files changed
+28
-8
No files matched your search
@@ -1400,6 +1400,12 @@ void PostPutAction::run(MipsCall &call) {
|
||||
ringbufferPutPacketsAdded += packetsAddedThisRound;
|
||||
}
|
||||
|
||||
if (!ctx) {
|
||||
_dbg_assert_(false);
|
||||
ERROR_LOG(Log::Mpeg, "sceMpegRingbufferPut: bad mpeg handle %08x", ringbuffer->mpeg);
|
||||
return;
|
||||
}
|
||||
|
||||
// It seems validation is done only by older mpeg libs.
|
||||
if (mpegLibVersion < 0x0105 && packetsAddedThisRound > 0) {
|
||||
// TODO: Faster / less wasteful validation.
|
||||
|
||||
Reference in new issue
Block a user