[vlc-devel] [PATCH] Audiotrack: Implement Flush
Rafaël Carré
funman at videolan.org
Fri Nov 23 08:58:09 CET 2012
Hello,
Le 22/11/2012 23:07, Sébastien Toque a écrit :
> ---
> modules/audio_output/audiotrack.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
> index 74ecc02..1e0e124 100644
> --- a/modules/audio_output/audiotrack.c
> +++ b/modules/audio_output/audiotrack.c
> @@ -116,6 +116,7 @@ static int Open(vlc_object_t *);
> static void Close(vlc_object_t *);
> static void Play(audio_output_t*, block_t*);
> static void Pause (audio_output_t *, bool, mtime_t);
> +static void Flush (audio_output_t *, bool);
>
> vlc_module_begin ()
> set_shortname("AudioTrack")
> @@ -269,6 +270,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
> aout->time_get = NULL;
> aout->play = Play;
> aout->pause = Pause;
> + aout->flush = Flush;
>
> p_sys->at_start(p_sys->AudioTrack);
>
> @@ -313,6 +315,14 @@ static void Pause(audio_output_t *p_aout, bool pause, mtime_t date)
> }
> }
>
> +static void Flush (audio_output_t *p_aout, bool wait)
> +{
> + VLC_UNUSED(wait);
Why is drain not handled? (wait = true)
> + aout_sys_t *p_sys = p_aout->sys;
> +
> + p_sys->at_flush(p_sys->AudioTrack);
> +}
> +
> static int Open(vlc_object_t *obj)
> {
> audio_output_t *aout = (audio_output_t *)obj;
>
More information about the vlc-devel
mailing list