summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-09-03 15:59:33 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-09-03 15:59:33 +0000
commitd77d08e81f97fa5c29b7101ee44d343cee53bf95 (patch)
treeb0bbd51bc0542b5b65e44a5739c16c7095b15ed7 /libpcsxcore
parent05df1bf907ace40cc43e72249af8decc6d71e6f4 (diff)
downloadpcsxr-d77d08e81f97fa5c29b7101ee44d343cee53bf95.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@28792 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdriso.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index c7485b6a..0f1fbd15 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -139,13 +139,11 @@ static void playthread(void *param)
static void *playthread(void *param)
#endif
{
- time_t t;
+ long t = GetTickCount();
long d;
- t = GetTickCount();
-
while (playing) {
- d = (long)t - GetTickCount();
+ d = t - (long)GetTickCount();
if (d <= 0) {
d = 1;
}