[vlc-commits] opensles: reset properly on flush

Rafaël Carré git at videolan.org
Thu Dec 20 16:31:32 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Dec 20 14:02:47 2012 +0100| [c19c00988e1ea060a299df058e0ceccd16cf1904] | committer: Rafaël Carré

opensles: reset properly on flush

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c19c00988e1ea060a299df058e0ceccd16cf1904
---

 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 dd2438e..65a1742 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -143,6 +143,8 @@ static void Flush(audio_output_t *p_aout, bool drain)
         SetPlayState( p_sys->playerPlay, SL_PLAYSTATE_PLAYING );
 
         p_sys->length = 0;
+        p_sys->last_callback = 0;
+        p_sys->buffers = 0;
 
         /* release audio data not yet written to opensles */
         block_ChainRelease( p_sys->p_buffer_chain );



More information about the vlc-commits mailing list