[MPlayer-dev-eng] 0.90 pre8 _TODAY_ ?

Björn Sandell biorn at dce.chalmers.se
Mon Sep 16 21:13:42 CEST 2002


On Mon, 16 Sep 2002, Bernd Ernesti wrote:

> On Mon, Sep 16, 2002 at 09:12:35PM +0200, Arpi wrote:
> > Hi,
> > 
> > anyone against (uncommited patches atc) releasing pre8 today?
> 
> Hmm, sound good, but I have to check whats wrong with it on NetBSD.
> 
> Right now it doesn't compile.

What do you think about the fix below?

--- ao_sun.c    12 Sep 2002 16:59:11 -0000      1.19
+++ ao_sun.c    16 Sep 2002 19:35:05 -0000
@@ -279,14 +279,16 @@
            float volume;
            AUDIO_INITINFO(&info);
            volume = vol->right > vol->left ? vol->right : vol->left;
-           info.output_muted = (volume == 0);
-           if ( !info.output_muted ) {
+           if ( volume != 0 ) {
                info.play.gain = volume * AUDIO_MAX_GAIN / 100;
                if ( vol->right == vol->left )
                    info.play.balance = AUDIO_MID_BALANCE;
                else
                    info.play.balance = (vol->right - vol->left + volume)
* AUDIO_RIGHT_BALANCE / (2*volume);
            }
+#if !defined (__OpenBSD__) && !defined (__NetBSD__)
+            info.output_muted = (volume == 0);
+#endif
            ioctl( fd,AUDIO_SETINFO,&info );
            close( fd );
            return CONTROL_OK;



Björn Sandell       DCE/DFS Sysadmin       IT department
Chalmers University of Technology    www.dce.chalmers.se




More information about the MPlayer-dev-eng mailing list