From a02f2a96020bc4ad0f7ef2cd6c597c325c879435 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 23 Dec 2012 12:37:12 +0100 Subject: [PATCH] audio: Make appsrc buffer between 0.5 and 1 MB of data --- mopidy/audio/actor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index 9f96c161..c3d11d98 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -110,9 +110,10 @@ class Audio(pykka.ThreadingActor): b'rate=(int)44100') source = element.get_property('source') source.set_property('caps', default_caps) - # GStreamer does not like unicode source.set_property('format', b'time') source.set_property('stream-type', b'seekable') + source.set_property('max-bytes', 1024 * 1024) # 1 MB + source.set_property('min-percent', 50) self._appsrc_need_data_id = source.connect( 'need-data', self._appsrc_on_need_data)