]> git.sesse.net Git - vlc/commitdiff
Revert [19092] and really fix the variable naming problem - closes #1082
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 5 Apr 2007 16:53:22 +0000 (16:53 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 5 Apr 2007 16:53:22 +0000 (16:53 +0000)
src/misc/mtime.c

index 2d1b16257b45b0aa37ef3b7fddb4cca2d5634262..5613483e5824477709f7dbe02c7474f95efb194e 100644 (file)
@@ -160,7 +160,6 @@ mtime_t mdate( void )
 #elif defined( WIN32 ) || defined( UNDER_CE )
     /* We don't need the real date, just the value of a high precision timer */
     static mtime_t freq = I64C(-1);
-    mtime_t usec_time;
 
     if( freq == I64C(-1) )
     {
@@ -226,9 +225,9 @@ mtime_t mdate( void )
         {
             /* Counter wrapped */
             i_wrap_counts++;
-            usec_time += I64C(0x100000000) * 1000;
+            res += I64C(0x100000000) * 1000;
         }
-        i_previous_time = usec_time;
+        i_previous_time = res;
         LeaveCriticalSection( &date_lock );
     }
 #else