From 31b0b5339422f6568b4cf676ff4aaa9b81279f2b Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Thu, 17 Nov 2016 00:39:45 +0000 Subject: [PATCH] cdvdgigaherz: Read correct sector type in keepalive thread It'll prevent errors messages when raw sector reading is used. --- plugins/cdvdGigaherz/src/CDVD.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/cdvdGigaherz/src/CDVD.cpp b/plugins/cdvdGigaherz/src/CDVD.cpp index 280b40f9f6..3df72643af 100644 --- a/plugins/cdvdGigaherz/src/CDVD.cpp +++ b/plugins/cdvdGigaherz/src/CDVD.cpp @@ -130,10 +130,10 @@ void keepAliveThread() []() { return !s_keepalive_is_open; })) { //printf(" * keepAliveThread: polling drive.\n"); - //if (prefetch_last_mode == CDVD_MODE_2048) - src->ReadSectors2048(prefetch_last_lba, 1, throwaway); - //else - // src->ReadSectors2352(prefetch_last_lba, 1, throwaway); + if (prefetch_last_mode == CDVD_MODE_2048) + src->ReadSectors2048(prefetch_last_lba, 1, throwaway); + else + src->ReadSectors2352(prefetch_last_lba, 1, throwaway); } printf(" * CDVD: KeepAlive thread finished.\n");