Browse Source

aout: the stop implementation is now mandatory

pull/89/head
Thomas Guillem 7 years ago
parent
commit
282c9fd3ad
  1. 2
      include/vlc_aout.h
  2. 3
      src/audio_output/output.c

2
include/vlc_aout.h

@ -159,7 +159,7 @@ struct audio_output
*/
void (*stop)(audio_output_t *);
/**< Stops the existing stream (optional, may be NULL).
/**< Stops the existing stream (mandatory, cannot be NULL).
*
* This callback terminates the current audio stream,
* and returns the audio output to stopped state.

3
src/audio_output/output.c

@ -609,8 +609,7 @@ int aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt,
void aout_OutputDelete (audio_output_t *aout)
{
aout_OutputLock(aout);
if (aout->stop != NULL)
aout->stop (aout);
aout->stop (aout);
aout_OutputUnlock(aout);
}

Loading…
Cancel
Save