projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bfd80e
)
pulsesink: set some values to their defaults
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 20 Jul 2009 17:09:19 +0000
(19:09 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 20 Jul 2009 17:09:19 +0000
(19:09 +0200)
Set the minreq and maxlength buffer attributes to -1 to let puleseaudio select a
sensible value.
ext/pulse/pulsesink.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsesink.c
b/ext/pulse/pulsesink.c
index
5373cdd
..
d80d5cf
100644
(file)
--- a/
ext/pulse/pulsesink.c
+++ b/
ext/pulse/pulsesink.c
@@
-619,9
+619,9
@@
gst_pulseringbuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
* when we cause an underrun, which causes time to continue. */
memset (&buf_attr, 0, sizeof (buf_attr));
buf_attr.tlength = spec->segtotal * spec->segsize;
- buf_attr.maxlength =
buf_attr.tlength * 2
;
+ buf_attr.maxlength =
-1
;
buf_attr.prebuf = 0;
- buf_attr.minreq =
spec->segsize
;
+ buf_attr.minreq =
-1
;
GST_INFO_OBJECT (psink, "tlength: %d", buf_attr.tlength);
GST_INFO_OBJECT (psink, "maxlength: %d", buf_attr.maxlength);