[vlc-commits] opensles: properly reset latency counter on Flush

Rafaël Carré git at videolan.org
Sat Dec 15 12:32:16 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Dec 15 12:31:58 2012 +0100| [8629535b762274ddac2074d86a53cdaa09107e04] | committer: Rafaël Carré

opensles: properly reset latency counter on Flush

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

 modules/audio_output/opensles_android.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 6b4af8f..4fb5497 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -127,6 +127,7 @@ static void Flush(audio_output_t *p_aout, bool wait)
     block_ChainRelease( p_sys->p_chain );
     p_sys->p_chain = NULL;
     p_sys->pp_last = &p_sys->p_chain;
+    p_sys->i_length = 0;
     vlc_mutex_unlock( &p_sys->lock );
 }
 



More information about the vlc-commits mailing list