changeset 5060:485ef815e786

10l - config.h should be included...
author arpi
date Wed, 13 Mar 2002 01:45:42 +0000
parents 8914f0bb6f35
children 40a97bdff44c
files libao2/ao_mpegpes.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_mpegpes.c	Wed Mar 13 01:23:36 2002 +0000
+++ b/libao2/ao_mpegpes.c	Wed Mar 13 01:45:42 2002 +0000
@@ -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);