mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
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:
parent
dc919d1291
commit
6a5293d065
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2005-05-31 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_open):
|
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_open):
|
||||||
|
|
|
@ -431,6 +431,9 @@ gst_ringbuffer_delay (GstRingBuffer * buf)
|
||||||
|
|
||||||
g_return_val_if_fail (buf != NULL, 0);
|
g_return_val_if_fail (buf != NULL, 0);
|
||||||
|
|
||||||
|
if (!gst_ringbuffer_is_acquired (buf))
|
||||||
|
return 0;
|
||||||
|
|
||||||
rclass = GST_RINGBUFFER_GET_CLASS (buf);
|
rclass = GST_RINGBUFFER_GET_CLASS (buf);
|
||||||
if (rclass->delay)
|
if (rclass->delay)
|
||||||
res = rclass->delay (buf);
|
res = rclass->delay (buf);
|
||||||
|
|
Loading…
Reference in a new issue