[Open Office] Please apply following patch for your gstreamer-avmedia-source-gstreamer.diff
NAKATA Maho
chat95 at mac.com
Sun Sep 3 16:39:57 EDT 2006
Hello Radek Doulik
I tried your gstremer in ooo-build for FreeBSD, and unfortunately there is a build issue.
* pow10 is only implemeted for GNU/Linux(it seems it requires #define _GNU_SOURCE ?)
* IMHO using pow(10.0,x) is portable.
* If you don't mind please apply the following patch!
following patch will solve this problem:
--- patches/gstreamer/gstreamer-avmedia-source-gstreamer.diff~ Fri Sep 1 03:11:26 2006
+++ patches/gstreamer/gstreamer-avmedia-source-gstreamer.diff Sun Sep 3 20:57:30 2006
@@ -1162,7 +1162,7 @@
+void SAL_CALL Player::setVolumeDB( sal_Int16 nVolumeDB )
+ throw (uno::RuntimeException)
+{
-+ mnUnmutedVolume = pow10 ( nVolumeDB / 20.0 );
++ mnUnmutedVolume = pow ( 10.0, nVolumeDB / 20.0 );
+
+ OSL_TRACE( "set volume: %d gst volume: %lf", nVolumeDB, mnUnmutedVolume );
+
thanks,
-- NAKATA, Maho (maho at FreeBSD.org)
More information about the Openoffice
mailing list