Commit d7143389 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: audio outputs compile fix

parent 1022827b
...@@ -241,7 +241,7 @@ static int OpenAudio( vlc_object_t *p_this ) ...@@ -241,7 +241,7 @@ static int OpenAudio( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
aout_PacketInit( p_aout, &p_sys->packet, A52_FRAME_NB ); aout_PacketInit( p_aout, &p_aout->sys->packet, A52_FRAME_NB );
aout_VolumeNoneInit( p_aout ); aout_VolumeNoneInit( p_aout );
} }
else else
...@@ -296,7 +296,7 @@ static int OpenAudio( vlc_object_t *p_this ) ...@@ -296,7 +296,7 @@ static int OpenAudio( vlc_object_t *p_this )
/* Calculate the frame size in bytes */ /* Calculate the frame size in bytes */
aout_FormatPrepare( &p_aout->format ); aout_FormatPrepare( &p_aout->format );
aout_PacketInit( p_aout, &p_sys->packet, FRAME_SIZE ); aout_PacketInit( p_aout, &p_aout->sys->packet, FRAME_SIZE );
aout_VolumeSoftInit( p_aout ); aout_VolumeSoftInit( p_aout );
} }
...@@ -1044,7 +1044,7 @@ static void* DirectSoundThread( void *data ) ...@@ -1044,7 +1044,7 @@ static void* DirectSoundThread( void *data )
{ {
DWORD l_read; DWORD l_read;
int l_queued = 0, l_free_slots; int l_queued = 0, l_free_slots;
unsigned i_frame_siz = p_sys->packet.samples; unsigned i_frame_siz = p_aout->sys->packet.samples;
mtime_t mtime = mdate(); mtime_t mtime = mdate();
int i; int i;
......
...@@ -240,7 +240,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -240,7 +240,7 @@ static int Open( vlc_object_t *p_this )
p_aout->sys->i_buffer_size = p_aout->sys->i_buffer_size =
p_aout->format.i_bytes_per_frame; p_aout->format.i_bytes_per_frame;
aout_PacketInit( p_aout, &p_aout->p_sys->packet, A52_FRAME_NB ); aout_PacketInit( p_aout, &p_aout->sys->packet, A52_FRAME_NB );
aout_VolumeNoneInit( p_aout ); aout_VolumeNoneInit( p_aout );
} }
else else
...@@ -286,7 +286,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -286,7 +286,7 @@ static int Open( vlc_object_t *p_this )
p_aout->sys->i_buffer_size = FRAME_SIZE * p_aout->sys->i_buffer_size = FRAME_SIZE *
p_aout->format.i_bytes_per_frame; p_aout->format.i_bytes_per_frame;
aout_PacketInit( p_aout, &p_aout->p_sys->packet, FRAME_SIZE ); aout_PacketInit( p_aout, &p_aout->sys->packet, FRAME_SIZE );
aout_VolumeSoftInit( p_aout ); aout_VolumeSoftInit( p_aout );
/* Check for hardware volume support */ /* Check for hardware volume support */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment