aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-05-05 04:31:38 +0800
committermarcus <marcus@FreeBSD.org>2004-05-05 04:31:38 +0800
commit2750b204e8b68a88262d44ea4784a684ebb0cb2a (patch)
tree245135931f6e631490c74db693f1a36aad43eebf /multimedia
parentf4f6e196ce540b3271c3d80332ea369d733f4afc (diff)
downloadfreebsd-ports-gnome-2750b204e8b68a88262d44ea4784a684ebb0cb2a.tar.gz
freebsd-ports-gnome-2750b204e8b68a88262d44ea4784a684ebb0cb2a.tar.zst
freebsd-ports-gnome-2750b204e8b68a88262d44ea4784a684ebb0cb2a.zip
Fix OSS output sink. See http://bugzilla.gnome.org/show_bug.cgi?id=140565 for
more details. Reported by: Stefan Thurner <thurners@t-online.de> Obtained from: GStreamer CVS
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer-plugins/Makefile1
-rw-r--r--multimedia/gstreamer-plugins/files/patch-sys_oss_gstosselement.c25
-rw-r--r--multimedia/gstreamer-plugins80/Makefile1
-rw-r--r--multimedia/gstreamer-plugins80/files/patch-sys_oss_gstosselement.c25
4 files changed, 52 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins/Makefile b/multimedia/gstreamer-plugins/Makefile
index 422d85d67eed..ed3c29928557 100644
--- a/multimedia/gstreamer-plugins/Makefile
+++ b/multimedia/gstreamer-plugins/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.8.1
+PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_GNOME} \
http://gstreamer.freedesktop.org/src/gst-plugins/
diff --git a/multimedia/gstreamer-plugins/files/patch-sys_oss_gstosselement.c b/multimedia/gstreamer-plugins/files/patch-sys_oss_gstosselement.c
new file mode 100644
index 000000000000..3f645e9dfc7d
--- /dev/null
+++ b/multimedia/gstreamer-plugins/files/patch-sys_oss_gstosselement.c
@@ -0,0 +1,25 @@
+===================================================================
+RCS file: /cvs/gstreamer/gst-plugins/sys/oss/gstosselement.c,v
+retrieving revision 1.35
+retrieving revision 1.36
+diff -u -r1.35 -r1.36
+--- sys/oss/gstosselement.c 2004/04/18 20:14:36 1.35
++++ sys/oss/gstosselement.c 2004/04/29 23:45:03 1.36
+@@ -1168,6 +1168,17 @@
+ probe->min = gst_osselement_rate_check_rate (probe, 1000);
+ n_checks++;
+ probe->max = gst_osselement_rate_check_rate (probe, 100000);
++ /* a little bug workaround */
++ {
++ int max;
++
++ max = gst_osselement_rate_check_rate (probe, 48000);
++ if (max > probe->max) {
++ GST_ERROR
++ ("Driver bug recognized (driver does not round rates correctly). Please file a bug report.");
++ probe->max = max;
++ }
++ }
+ n_checks++;
+ if (probe->min == -1 || probe->max == -1) {
+ GST_DEBUG ("unexpected check_rate error");
diff --git a/multimedia/gstreamer-plugins80/Makefile b/multimedia/gstreamer-plugins80/Makefile
index 422d85d67eed..ed3c29928557 100644
--- a/multimedia/gstreamer-plugins80/Makefile
+++ b/multimedia/gstreamer-plugins80/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.8.1
+PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_GNOME} \
http://gstreamer.freedesktop.org/src/gst-plugins/
diff --git a/multimedia/gstreamer-plugins80/files/patch-sys_oss_gstosselement.c b/multimedia/gstreamer-plugins80/files/patch-sys_oss_gstosselement.c
new file mode 100644
index 000000000000..3f645e9dfc7d
--- /dev/null
+++ b/multimedia/gstreamer-plugins80/files/patch-sys_oss_gstosselement.c
@@ -0,0 +1,25 @@
+===================================================================
+RCS file: /cvs/gstreamer/gst-plugins/sys/oss/gstosselement.c,v
+retrieving revision 1.35
+retrieving revision 1.36
+diff -u -r1.35 -r1.36
+--- sys/oss/gstosselement.c 2004/04/18 20:14:36 1.35
++++ sys/oss/gstosselement.c 2004/04/29 23:45:03 1.36
+@@ -1168,6 +1168,17 @@
+ probe->min = gst_osselement_rate_check_rate (probe, 1000);
+ n_checks++;
+ probe->max = gst_osselement_rate_check_rate (probe, 100000);
++ /* a little bug workaround */
++ {
++ int max;
++
++ max = gst_osselement_rate_check_rate (probe, 48000);
++ if (max > probe->max) {
++ GST_ERROR
++ ("Driver bug recognized (driver does not round rates correctly). Please file a bug report.");
++ probe->max = max;
++ }
++ }
+ n_checks++;
+ if (probe->min == -1 || probe->max == -1) {
+ GST_DEBUG ("unexpected check_rate error");