Skip to content
Snippets Groups Projects
Commit a8480f07 authored by Thomas Guillem's avatar Thomas Guillem Committed by Rémi Denis-Courmont
Browse files

amem: implement asynchronous drain

"amem-drain" is still synchronous, the drained state is reported after
the call to this blocking callback.
parent 680d334b
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,8 @@ static void Drain (audio_output_t *aout)
vlc_mutex_lock(&sys->lock);
sys->drain (sys->opaque);
vlc_mutex_unlock(&sys->lock);
aout_DrainedReport (aout);
}
static int VolumeSet (audio_output_t *aout, float vol)
......@@ -374,7 +376,7 @@ static int Open (vlc_object_t *obj)
aout->play = Play;
aout->pause = Pause;
aout->flush = Flush;
aout->drain = sys->drain ? Drain : NULL;
aout->drain_async = sys->drain ? Drain : NULL;
if (sys->set_volume != NULL)
{
aout->volume_set = VolumeSet;
......
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