gst-libs/gst/audio/gstringbuffer.c: Don't assert on normal stuff.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 12 Oct 2005 12:38:20 +0000 (12:38 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 12 Oct 2005 12:38:20 +0000 (12:38 +0000)
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.

ChangeLog
gst-libs/gst/audio/gstringbuffer.c
gst/playback/gstplaybin.c

index 269d5ce..a145684 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 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):
index 274d326..6aa866c 100644 (file)
@@ -1204,7 +1204,10 @@ gst_ring_buffer_clear (GstRingBuffer * buf, gint segment)
   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);
index aa489d8..ea3c9a5 100644 (file)
@@ -897,12 +897,10 @@ do_playbin_seek (GstElement * element, GstEvent * event)
 
   if (flush) {
     GstState state;
-    GTimeVal timeout;
 
-    GST_TIME_TO_TIMEVAL (0, timeout);
     /* 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) {