Skip to content
Snippets Groups Projects
Commit 282c9fd3 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

aout: the stop implementation is now mandatory

parent 2049d408
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment