[Mplayer-cvslog] CVS: main/libao2 ao_mpegpes.c,1.7,1.8

Arpi of Ize arpi at mplayer.dev.hu
Wed Mar 13 02:45:45 CET 2002


Update of /cvsroot/mplayer/main/libao2
In directory mplayer:/var/tmp.root/cvs-serv25580

Modified Files:
	ao_mpegpes.c 
Log Message:
10l - config.h should be included...

Index: ao_mpegpes.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_mpegpes.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ao_mpegpes.c	21 Feb 2002 17:22:03 -0000	1.7
+++ ao_mpegpes.c	13 Mar 2002 01:45:42 -0000	1.8
@@ -2,6 +2,8 @@
 #include <stdlib.h>
 #include <sys/ioctl.h>
 
+#include "../config.h"
+
 #include "audio_out.h"
 #include "audio_out_internal.h"
 
@@ -42,8 +44,8 @@
 	  return CONTROL_ERROR;
 	case AOCONTROL_SET_VOLUME:
 	  if(vo_mpegpes_fd2>=0){
-	    dvb_mixer.volume_left=((ao_control_vol_t)(arg)).left*2.56;
-	    dvb_mixer.volume_right=((ao_control_vol_t)(arg)).right*2.56;
+	    dvb_mixer.volume_left=((ao_control_vol_t*)(arg))->left*2.56;
+	    dvb_mixer.volume_right=((ao_control_vol_t*)(arg))->right*2.56;
 	    if(dvb_mixer.volume_left>255) dvb_mixer.volume_left=255;
 	    if(dvb_mixer.volume_right>255) dvb_mixer.volume_right=255;
 	    //	 printf("Setting DVB volume: %d ; %d  \n",dvb_mixer.volume_left,dvb_mixer.volume_right);




More information about the MPlayer-cvslog mailing list