[rhythmbox] audiocd: disable paranoia when reading TOC information
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] audiocd: disable paranoia when reading TOC information
- Date: Fri, 19 Jun 2009 21:51:34 -0400 (EDT)
commit 98558435e7efb12feb8ecb8d1d59f067b1155eeb
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Jun 20 11:50:33 2009 +1000
audiocd: disable paranoia when reading TOC information
This has the side effect of reducing cdparanoia's cache size, making the
TOC scan faster.
plugins/audiocd/rb-audiocd-source.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audiocd/rb-audiocd-source.c b/plugins/audiocd/rb-audiocd-source.c
index f8221c7..899f072 100644
--- a/plugins/audiocd/rb-audiocd-source.c
+++ b/plugins/audiocd/rb-audiocd-source.c
@@ -858,6 +858,12 @@ rb_audiocd_load_songs (RBAudioCdSource *source)
gst_bin_add_many (GST_BIN (priv->pipeline), priv->cdda, priv->fakesink, NULL);
gst_element_link (priv->cdda, priv->fakesink);
+ /* disable paranoia (if using cdparanoia) since we're only reading track information here.
+ * this reduces cdparanoia's cache size, so the process is much faster.
+ */
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS (source), "paranoia-mode"))
+ g_object_set (source, "paranoia-mode", 0, NULL);
+
if (rb_audiocd_scan_songs (source, db))
rb_audiocd_load_metadata (source, db);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]