Original commit message from CVS:
* gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_stop):
Set ringbuffer to flushing when stopping so that we don't
block on wait_segment anymore and livelock.
+2005-11-16 Wim Taymans <wim@fluendo.com>
+
+ * gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_stop):
+ Set ringbuffer to flushing when stopping so that we don't
+ block on wait_segment anymore and livelock.
+
2005-11-16 Wim Taymans <wim@fluendo.com>
* examples/seeking/seek.c: (send_event), (do_seek),
GST_DEBUG_OBJECT (buf, "stopping");
GST_LOCK (buf);
- if (buf->flushing)
- goto flushing;
+ buf->flushing = TRUE;
/* if started, set to stopped */
res = g_atomic_int_compare_and_exchange (&buf->state,
GST_UNLOCK (buf);
return res;
-
-flushing:
- {
- GST_UNLOCK (buf);
- return FALSE;
- }
}
/**