Commit 37fea1a4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

audio_output/amem.c: cleanup

Cleanup and properly initialize sys->b_own_semaphore.
parent 21942001
......@@ -370,7 +370,6 @@ static void amem_shmem_header(aout_instance_t *aout)
header->wave.nChannels = aout->output.output.i_channels;
header->wave.nSamplesPerSec = header->i_rate * header->i_max_samples;
header->wave.wBitsPerSample = header->i_bitspersample;
//header->wave.nBlockAlign = header->i_blockalign;
header->wave.nBlockAlign = header->wave.wBitsPerSample / 8 * header->wave.nChannels;
header->wave.nAvgBytesPerSec = header->wave.nSamplesPerSec * header->wave.nBlockAlign;
header->wave.cbSize = 0; /* No additional format metadata */
......@@ -495,7 +494,9 @@ static int Open(vlc_object_t *p_this)
/* */
sys->header = NULL;
sys->b_own_semaphore = false;
/* */
aout->output.pf_play = Play;
/* Name to use */
......
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