diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-31 16:17:10 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-31 16:17:10 +0000 |
| commit | a17af187d964e4902b5cc926688be6480af0c785 (patch) | |
| tree | c24da6b7b93c4a7b5f531140da56f4254a25f173 | |
| parent | 494d576a0bf41b6db70e28fd4544b8e6925fd124 (diff) | |
| download | pcsxr-a17af187d964e4902b5cc926688be6480af0c785.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@28475 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | libpcsxcore/cdriso.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index b79359c4..d1869734 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -139,13 +139,15 @@ static void *playthread(void *param) while (playing) { d = (long)t - GetTickCount(); - if (d > 0) { + if (d <= 0) { + d = 1; + } + #ifdef _WIN32 - Sleep(d); + Sleep(d); #else - usleep(d); + usleep(d); #endif - } t = GetTickCount() + 1000 * (sizeof(sndbuffer) / CD_FRAMESIZE_RAW) / 75; |
