changeset 108:293bb1798e86 src

Remove C++ism.
author f1rmb
date Mon, 28 Oct 2002 13:08:12 +0000
parents b2801805c433
children f41eae322bd1
files read_cache.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/read_cache.c	Thu Oct 24 16:48:19 2002 +0000
+++ b/read_cache.c	Mon Oct 28 13:08:12 2002 +0000
@@ -512,7 +512,8 @@
   }
 
   if (use >= 0) {
-
+    read_cache_chunk_t *chunk;
+    
     /* Increment read-ahead size if sector follows the last sector */
     if (sector == (self->last_sector + 1)) {
       self->read_ahead_incr++;
@@ -528,7 +529,7 @@
      *   self->chunk[*].usage_count
      */
     pthread_mutex_lock(&self->lock);
-    read_cache_chunk_t *chunk = &self->chunk[use];
+    chunk = &self->chunk[use];
     read_ahead_buf = chunk->cache_buffer + chunk->cache_read_count * DVD_VIDEO_LB_LEN;
     *buf = chunk->cache_buffer + (sector - chunk->cache_start_sector) * DVD_VIDEO_LB_LEN;
     chunk->usage_count++;