From d77d08e81f97fa5c29b7101ee44d343cee53bf95 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Thu, 3 Sep 2009 15:59:33 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@28792 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/cdriso.c | 6 ++---- 1 file 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; } -- cgit v1.2.3