pulsesink: don't uncork in _start
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 7 Dec 2010 10:43:13 +0000 (11:43 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 7 Dec 2010 10:43:13 +0000 (11:43 +0100)
Don't uncork in the _start method just yet but wait until we have written some
samples to pulseaudio. This avoid underruns on pulseaudio and less crackling
noises when starting.

ext/pulse/pulsesink.c

index 8bed0c1..2a9a108 100644 (file)
@@ -1072,7 +1072,6 @@ gst_pulseringbuffer_start (GstRingBuffer * buf)
 
   GST_DEBUG_OBJECT (psink, "starting");
   pbuf->paused = FALSE;
-  gst_pulsering_set_corked (pbuf, FALSE, FALSE);
   pa_threaded_mainloop_unlock (mainloop);
 
   return TRUE;