|
From: GStreamer (bugzilla.gnome.org) <bug...@bu...> - 2009-05-04 05:46:47
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=545807 GStreamer | gst-plugins-base | Ver: git ------- Comment #21 from Eero Nurkkala 2009-05-04 05:46 UTC ------- (In reply to comment #20) > > Should look like: > > <---------------------------------------> > --- a/gst-libs/gst/audio/gstringbuffer.c > +++ b/gst-libs/gst/audio/gstringbuffer.c > @@ -1390,6 +1390,10 @@ > > GST_DEBUG_OBJECT (buf, "start!"); > gst_ring_buffer_start (buf); > + > + /* After starting, the writer may have wrote segments already */ > + if (g_atomic_int_get (&buf->segdone) > 0) > + goto no_need_to_wait; > } > > /* take lock first, then update our waiting flag */ > @@ -1414,6 +1418,7 @@ > } > GST_OBJECT_UNLOCK (buf); > > +no_need_to_wait: > return TRUE; > > /* ERROR */ > <-------------------------------> > And I confirm that this is sufficient to fix pulsesink alltogether. (with alsasink, one extra buffer gets inserted; but as with this, this should be a lot better) -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=545807. |