[vlc-commits] afile: implement dummy pause
Rémi Denis-Courmont
git at videolan.org
Sat May 5 17:46:03 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 5 18:26:23 2018 +0300| [f1dfd429ba2d369a67a165d8ca3b11cac628517a] | committer: Rémi Denis-Courmont
afile: implement dummy pause
(do not flush on pause)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1dfd429ba2d369a67a165d8ca3b11cac628517a
---
modules/audio_output/file.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index f362c9a854..4982d6c80b 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -75,6 +75,7 @@ static const int pi_channels_maps[CHANNELS_MAX+1] =
*****************************************************************************/
static int Open ( vlc_object_t * );
static void Play ( audio_output_t *, block_t *, mtime_t );
+static void Pause ( audio_output_t *, bool, mtime_t );
static void Flush ( audio_output_t *, bool );
/*****************************************************************************
@@ -165,7 +166,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
p_aout->time_get = aout_TimeGetDefault;
p_aout->play = Play;
- p_aout->pause = NULL;
+ p_aout->pause = Pause;
p_aout->flush = Flush;
/* Audio format */
@@ -334,6 +335,11 @@ static void Play( audio_output_t * p_aout, block_t *p_buffer, mtime_t date )
(void) date;
}
+static void Pause( audio_output_t *aout, bool paused, mtime_t date )
+{
+ (void) aout; (void) paused; (void) date;
+}
+
static void Flush( audio_output_t *aout, bool wait )
{
aout_sys_t *p_sys = aout->sys;
More information about the vlc-commits
mailing list