Original commit message from CVS:
* gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_commit),
(gst_ring_buffer_read), (gst_ring_buffer_clear):
Don't assert on normal stuff.
* gst/playback/gstplaybin.c: (do_playbin_seek):
API fix.
2005-10-12 Wim Taymans <wim@fluendo.com>
2005-10-12 Wim Taymans <wim@fluendo.com>
+ * gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_commit),
+ (gst_ring_buffer_read), (gst_ring_buffer_clear):
+ Don't assert on normal stuff.
+
+ * gst/playback/gstplaybin.c: (do_playbin_seek):
+ API fix.
+
+2005-10-12 Wim Taymans <wim@fluendo.com>
+
* check/pipelines/simple_launch_lines.c: (run_pipeline):
* examples/seeking/Makefile.am:
* examples/seeking/cdplayer.c: (play_cb), (pause_cb), (stop_cb):
* check/pipelines/simple_launch_lines.c: (run_pipeline):
* examples/seeking/Makefile.am:
* examples/seeking/cdplayer.c: (play_cb), (pause_cb), (stop_cb):
guint8 *data;
g_return_if_fail (buf != NULL);
guint8 *data;
g_return_if_fail (buf != NULL);
- g_return_if_fail (buf->data != NULL);
+ /* no data means it's allready cleared */
+ if (buf->data == NULL)
+ return;
+
g_return_if_fail (buf->empty_seg != NULL);
data = GST_BUFFER_DATA (buf->data);
g_return_if_fail (buf->empty_seg != NULL);
data = GST_BUFFER_DATA (buf->data);
if (flush) {
GstState state;
if (flush) {
GstState state;
- GST_TIME_TO_TIMEVAL (0, timeout);
/* need to call _get_state() since a bin state is only updated
* with this call. */
/* need to call _get_state() since a bin state is only updated
* with this call. */
- gst_element_get_state (element, &state, NULL, &timeout);
+ gst_element_get_state (element, &state, NULL, 0);
was_playing = state == GST_STATE_PLAYING;
if (was_playing) {
was_playing = state == GST_STATE_PLAYING;
if (was_playing) {