pulsesink: uncork if needed upon commit
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Thu, 8 Jan 2015 20:07:05 +0000 (21:07 +0100)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Sat, 10 Jan 2015 12:04:44 +0000 (13:04 +0100)
... to provide for a running clock.

ext/pulse/pulsesink.c

index 28ea856..c20b0a0 100644 (file)
@@ -1516,6 +1516,12 @@ gst_pulseringbuffer_commit (GstAudioRingBuffer * buf, guint64 * sample,
   if (pbuf->paused)
     goto was_paused;
 
+  /* ensure running clock for whatever out there */
+  if (pbuf->corked) {
+    if (!gst_pulsering_set_corked (pbuf, FALSE, FALSE))
+      goto uncork_failed;
+  }
+
   /* offset is in bytes */
   offset = *sample * bpf;