diff options
author | Josep Torra <n770galaxy@gmail.com> | 2012-09-27 19:24:50 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2012-09-27 19:24:50 +0200 |
commit | 4d515a312dfef8730468bb76ae6d88d7a3e1632c (patch) | |
tree | 1a0dad81578e7e658a23b2335a9c67e4ff5d8b51 | |
parent | 52daf513c87dc6d909ab44c43dee89ff285da184 (diff) |
opensles: change the defaults to use 20 ms ringbuffer segments
In my nexus7 seems that the internal min buffer size is 20 ms so make
our segments match.
-rw-r--r-- | sys/opensles/openslessink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/opensles/openslessink.c b/sys/opensles/openslessink.c index 254a03cc0..19298ff66 100644 --- a/sys/opensles/openslessink.c +++ b/sys/opensles/openslessink.c @@ -269,4 +269,6 @@ gst_opensles_sink_init (GstOpenSLESSink * sink, GstOpenSLESSinkClass * gclass) _opensles_query_capabilities (sink); gst_base_audio_sink_set_provide_clock (GST_BASE_AUDIO_SINK (sink), TRUE); + GST_BASE_AUDIO_SINK (sink)->buffer_time = 400000; + GST_BASE_AUDIO_SINK (sink)->latency_time = 20000; } |