[Mplayer-cvslog] CVS: main mixer.c,1.2,1.3
Zoltan Ponekker
pontscho at users.sourceforge.net
Wed Apr 18 22:39:06 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv27599
Modified Files:
mixer.c
Log Message:
some code cleanup
Index: mixer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mixer.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** mixer.c 2001/04/16 00:23:38 1.2
--- mixer.c 2001/04/18 20:39:04 1.3
***************
*** 8,15 ****
#include "mixer.h"
- #define DEV_MIXER "/dev/mixer"
-
char * mixer_device=NULL;
- char * devname=NULL;
int mixer_usemaster=0;
--- 8,12 ----
***************
*** 18,25 ****
int fd,v,cmd,devs;
! if ( !mixer_device ) devname=strdup( DEV_MIXER );
! else devname=strdup( mixer_device );
! fd=open( devname,O_RDONLY );
! free( devname );
if ( fd != -1 )
{
--- 15,19 ----
int fd,v,cmd,devs;
! fd=open( mixer_device,O_RDONLY );
if ( fd != -1 )
{
***************
*** 44,51 ****
int fd,v,cmd,devs;
! if ( !mixer_device ) devname=strdup( DEV_MIXER );
! else devname=strdup( mixer_device );
! fd=open( devname,O_RDONLY );
! free( devname );
if ( fd != -1 )
{
--- 38,42 ----
int fd,v,cmd,devs;
! fd=open( mixer_device,O_RDONLY );
if ( fd != -1 )
{
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list