[vlc-commits] opensles: reset number of samples correctly
Rafaël Carré
git at videolan.org
Sat Jan 19 23:42:10 CET 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jan 19 23:41:49 2013 +0100| [efc932cc099fd938cd31f97e22d11dbb476ffa59] | committer: Rafaël Carré
opensles: reset number of samples correctly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efc932cc099fd938cd31f97e22d11dbb476ffa59
---
modules/audio_output/opensles_android.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index a9208b5..d02b21c 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -193,6 +193,7 @@ static void Flush(audio_output_t *aout, bool drain)
sys->p_buffer_chain = NULL;
sys->pp_buffer_last = &sys->p_buffer_chain;
+ sys->samples = 0;
sys->started = false;
vlc_mutex_unlock(&sys->lock);
@@ -426,6 +427,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
sys->p_buffer_chain = NULL;
sys->pp_buffer_last = &sys->p_buffer_chain;
+ sys->samples = 0;
// we want 16bit signed data native endian.
fmt->i_format = VLC_CODEC_S16N;
More information about the vlc-commits
mailing list