Original commit message from CVS:
* gst-libs/gst/audio/gstringbuffer.c: (gst_ringbuffer_delay):
Don't try to call the delay method when the device is not
opened.
2005-05-31 Wim Taymans <wim@fluendo.com>
+ * gst-libs/gst/audio/gstringbuffer.c: (gst_ringbuffer_delay):
+ Don't try to call the delay method when the device is not
+ opened.
+
+2005-05-31 Wim Taymans <wim@fluendo.com>
+
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_open):
Get actual segment size and buffer size after opening
the device.
g_return_val_if_fail (buf != NULL, 0);
+ if (!gst_ringbuffer_is_acquired (buf))
+ return 0;
+
rclass = GST_RINGBUFFER_GET_CLASS (buf);
if (rclass->delay)
res = rclass->delay (buf);