# HG changeset patch # User arpi # Date 1015983942 0 # Node ID 485ef815e7869dc1cd2c56e783092125e145241b # Parent 8914f0bb6f351f88bf0346ffd8517c1e68d932c5 10l - config.h should be included... diff -r 8914f0bb6f35 -r 485ef815e786 libao2/ao_mpegpes.c --- 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 #include +#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);