openbsd-ports/multimedia/gstreamer-0.10/plugins-base/patches/patch-ext_cdparanoia_gstcdparanoiasrc_c

34 lines
1.2 KiB
Plaintext

$OpenBSD: patch-ext_cdparanoia_gstcdparanoiasrc_c,v 1.3 2010/09/20 16:11:12 ajacoutot Exp $
Our cdparanoia version does not have cache control.
--- ext/cdparanoia/gstcdparanoiasrc.c.orig Fri Jun 25 19:03:59 2010
+++ ext/cdparanoia/gstcdparanoiasrc.c Mon Sep 20 17:25:46 2010
@@ -217,7 +217,7 @@ gst_cd_paranoia_src_open (GstCddaBaseSrc * cddabasesrc
if (device != NULL) {
src->d = cdda_identify (device, FALSE, NULL);
} else {
- src->d = cdda_identify ("/dev/cdrom", FALSE, NULL);
+ src->d = cdda_identify ("/dev/rcd0c", FALSE, NULL);
}
}
@@ -260,17 +260,6 @@ gst_cd_paranoia_src_open (GstCddaBaseSrc * cddabasesrc
paranoia_overlapset (src->p, src->search_overlap);
GST_INFO_OBJECT (src, "search overlap set to %u", src->search_overlap);
}
-
- cache_size = src->cache_size;
- if (cache_size == -1) {
- /* if paranoia mode is low (the default), assume we're doing playback */
- if (src->paranoia_mode <= PARANOIA_MODE_FRAGMENT)
- cache_size = 150;
- else
- cache_size = paranoia_cachemodel_size (src->p, -1);
- }
- paranoia_cachemodel_size (src->p, cache_size);
- GST_INFO_OBJECT (src, "set cachemodel size to %u", cache_size);
src->next_sector = -1;