[vlc-commits] opensles: set period size

Rafaël Carré git at videolan.org
Sun Dec 16 11:12:55 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Dec 16 10:21:46 2012 +0100| [7d6cf033e65509fbe0d24942251a6bf3df814bc6] | committer: Rafaël Carré

opensles: set period size

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

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

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 41fd78d..f2ee057 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -51,6 +51,7 @@
 #define Enqueue(a, b, c) (*a)->Enqueue(a, b, c)
 #define Clear(a) (*a)->Clear(a)
 #define GetState(a, b) (*a)->GetState(a, b)
+#define SetPositionUpdatePeriod(a, b) (*a)->SetPositionUpdatePeriod(a, b)
 
 /*****************************************************************************
  * aout_sys_t: audio output method descriptor
@@ -416,6 +417,8 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
     p_aout->pause              = Pause;
     p_aout->flush              = Flush;
 
+    SetPositionUpdatePeriod( p_sys->playerPlay, AOUT_MIN_PREPARE_TIME * 1000 / CLOCK_FREQ);
+
     aout_FormatPrepare( fmt );
 
     p_sys->format = *fmt;



More information about the vlc-commits mailing list