CDROM: Fix crash when changing readahead sectors
This commit is contained in:
1 parent
17e554498f
commit
e1383d15aa
1 file changed
+2
-1
+2
-1
@@ -438,7 +438,8 @@ void CDROM::SetReadaheadSectors(u32 readahead_sectors)
|
|||||||
else
|
else
|
||||||
m_reader.StopThread();
|
m_reader.StopThread();
|
||||||
|
|
||||||
m_reader.QueueReadSector(m_requested_lba);
|
if (HasMedia())
|
||||||
|
m_reader.QueueReadSector(m_requested_lba);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDROM::CPUClockChanged()
|
void CDROM::CPUClockChanged()
|
||||||
|
|||||||
Reference in new issue
Block a user