[vlc-devel] [PATCH] Audiotrack: Implement Flush
Sébastien Toque
xilasz at gmail.com
Thu Nov 22 23:07:17 CET 2012
---
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);
+ 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;
--
1.7.9.5
More information about the vlc-devel
mailing list