gst-libs/gst/audio/gstbaseaudiosink.c: Don't try to provide a clock in the NULL state.

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_provide_clock):
Don't try to provide a clock in the NULL state.
This commit is contained in:
Wim Taymans 2006-02-28 11:06:24 +00:00
parent 833af598fc
commit 77ff8c9fdb
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-02-28 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_provide_clock):
Don't try to provide a clock in the NULL state.
2006-02-28 Wim Taymans <wim@fluendo.com>
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_receive_event),

View file

@ -181,6 +181,10 @@ gst_base_audio_sink_provide_clock (GstElement * elem)
sink = GST_BASE_AUDIO_SINK (elem);
/* we have no ringbuffer (must be NULL state */
if (sink->ringbuffer == NULL)
goto wrong_state;
if (!gst_ring_buffer_is_acquired (sink->ringbuffer))
goto wrong_state;