[Open Office] Please apply following patch for your gstreamer-avmedia-source-gstreamer.diff

Radek Doulík rodo at novell.com
Mon Sep 4 05:19:11 EDT 2006


Hi NAKATA,

thanks for your patch. It is fixed in cvs now.

Cheers
Radek

On Mon, 2006-09-04 at 05:39 +0900, NAKATA Maho wrote:
> 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)
> 
-- 
Radek Doulík <rodo at novell.com>
Novell, Inc.



More information about the Openoffice mailing list