changeset 47:12628fdcc18a src

Disable the read_cache miss dprintf when read_cache is disabled.
author jcdutton
date Wed, 26 Jun 2002 14:53:41 +0000
parents 654705f4e7af
children 9030797161f0
files read_cache.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/read_cache.c	Tue Jun 25 20:36:04 2002 +0000
+++ b/read_cache.c	Wed Jun 26 14:53:41 2002 +0000
@@ -425,12 +425,11 @@
 	return DVD_VIDEO_LB_LEN;
       }
     }
-  //} else {
-  //  result = DVDReadBlocks( self->dvd_self->file, sector, block_count, buf);
-  //  return result;
+  /* Disable dprintf if read cache is disabled. */
+  if(self->dvd_self->use_read_ahead) {
+    dprintf("DVD read cache miss! sector=%d, start=%d, end=%d\n",
+             sector, self->cache_start_sector, self->cache_block_count + self->cache_start_sector); 
   }
-  
-  dprintf("DVD read cache miss! sector=%d, start=%d, end=%d\n", sector, self->cache_start_sector, self->cache_block_count + self->cache_start_sector); 
   result = DVDReadBlocks( self->dvd_self->file, sector, block_count, buf);
   return result;
 }