changeset 34380:9b11eb048fca

Don't call paranoia_modeset() for PARANOIA_MODE_DISABLE. cdparanoia destroys start sector information after such a call. Since it is pointless without setting a mode anyway, don't do it.
author ib
date Wed, 28 Dec 2011 14:14:12 +0000
parents 010725c3b6c8
children 73af1364a09d
files stream/stream_cdda.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cdda.c	Wed Dec 28 14:04:27 2011 +0000
+++ b/stream/stream_cdda.c	Wed Dec 28 14:14:12 2011 +0000
@@ -431,7 +431,7 @@
   // HACK against libcdparanoia's stupid caching model that
   // queues up a huge number of requests leading to stuttering
   paranoia_cachemodel_size(priv->cdp, 24);
-  paranoia_modeset(cdd, mode);
+  if (mode != PARANOIA_MODE_DISABLE) paranoia_modeset(cdd, mode);
 
   if(p->search_overlap > 0)
     paranoia_overlapset(cdd,p->search_overlap);