From 4f49c7a33ba32cf1b30c4023570b241c24babd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 17 Dec 2012 20:26:33 +0000 Subject: [PATCH] audioringbuffer: add GST_AUDIO_RING_BUFFER_STATE_ERROR state API: GST_AUDIO_RING_BUFFER_STATE_ERROR https://bugzilla.gnome.org/show_bug.cgi?id=690197 --- gst-libs/gst/audio/gstaudioringbuffer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudioringbuffer.h b/gst-libs/gst/audio/gstaudioringbuffer.h index ce9eccb4d1..d60aa3a8bf 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.h +++ b/gst-libs/gst/audio/gstaudioringbuffer.h @@ -57,13 +57,17 @@ typedef void (*GstAudioRingBufferCallback) (GstAudioRingBuffer *rbuf, guint8* da * @GST_AUDIO_RING_BUFFER_STATE_STOPPED: The ringbuffer is stopped * @GST_AUDIO_RING_BUFFER_STATE_PAUSED: The ringbuffer is paused * @GST_AUDIO_RING_BUFFER_STATE_STARTED: The ringbuffer is started + * @GST_AUDIO_RING_BUFFER_STATE_ERROR: The ringbuffer has encountered an + * error after it has been started, e.g. because the device was + * disconnected (Since 1.2) * * The state of the ringbuffer. */ typedef enum { GST_AUDIO_RING_BUFFER_STATE_STOPPED, GST_AUDIO_RING_BUFFER_STATE_PAUSED, - GST_AUDIO_RING_BUFFER_STATE_STARTED + GST_AUDIO_RING_BUFFER_STATE_STARTED, + GST_AUDIO_RING_BUFFER_STATE_ERROR } GstAudioRingBufferState; /**