gst-libs/gst/audio/gstringbuffer.c: Don't try to call the delay method when the device is not opened.

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.
This commit is contained in:
Wim Taymans 2005-05-31 11:38:10 +00:00
parent dc919d1291
commit 6a5293d065
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
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):

View file

@ -431,6 +431,9 @@ gst_ringbuffer_delay (GstRingBuffer * buf)
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);