After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 600945 - silence buffers at start reusing pulsesrc
silence buffers at start reusing pulsesrc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Windows
: Normal normal
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-06 10:36 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2009-11-09 11:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test app (1.41 KB, text/x-csrc)
2009-11-06 10:36 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
Details

Description Stefan Sauer (gstreamer, gtkdoc dev) 2009-11-06 10:36:59 UTC
Created attachment 147088 [details]
test app

When resuing pulse src a 2nd time (PLAYING -> READY -> PLAYING), one receives
empty (silence) buffers initialy that seem to cover as much time as the
pulsesrc was running previously.

Attached is a test to reproduce it, build as:
gcc `pkg-config gstreamer-0.10 --cflags --libs` -o test
Comment 1 Wim Taymans 2009-11-06 11:22:48 UTC
commit 4f3f9a105482615ca47cb05a07cb4525f2733529
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Fri Nov 6 12:19:47 2009 +0100

    basesrc: fix startup position in the ringbuffer
    
    When we start and we need to produce the first sample, go to the next sample
    that will be written into the ringbuffer instead of trying to go to sample 0.
    We relied on rather small ringbuffer sizes to correctly go to the current
    sample, which breaks whith large buffers.
    
    Fixes #600945