[vlc-commits] XXX default pause
Rémi Denis-Courmont
git at videolan.org
Sat May 5 17:07:56 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 5 17:43:02 2018 +0300| [d1476cb1c93b9a0f17230546fe39b7bf29f034df] | committer: Rémi Denis-Courmont
XXX default pause
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1476cb1c93b9a0f17230546fe39b7bf29f034df
---
include/vlc_aout.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index 9363532dc9..17c6a723ea 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -436,6 +436,20 @@ static inline int aout_TimeGetDefault(audio_output_t *aout,
return -1;
}
+/**
+ * Default implementation for audio_output_t.pause
+ *
+ * \warning This default callback implementation is suboptimal as it will
+ * discard some audio samples.
+ * Do not use this unless there are really no possible better alternatives.
+ */
+static inline void aout_PauseDefault(audio_output_t *aout, bool paused,
+ mtime_t date)
+{
+ if (paused && aout->flush != NULL)
+ aout->flush(aout, false);
+}
+
/* Audio output filters */
typedef struct
More information about the vlc-commits
mailing list