mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
audioringbuffer: Reset segdone when releasing audioringbuffer
https://bugzilla.gnome.org/show_bug.cgi?id=697723
This commit is contained in:
parent
789ddf42a9
commit
587b2721c8
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,8 @@ gst_audio_ring_buffer_init (GstAudioRingBuffer * ringbuffer)
|
|||
ringbuffer->waiting = 0;
|
||||
ringbuffer->empty_seg = NULL;
|
||||
ringbuffer->flushing = TRUE;
|
||||
ringbuffer->segbase = 0;
|
||||
ringbuffer->segdone = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -682,6 +684,7 @@ gst_audio_ring_buffer_release (GstAudioRingBuffer * buf)
|
|||
if (G_UNLIKELY (!res))
|
||||
goto release_failed;
|
||||
|
||||
g_atomic_int_set (&buf->segdone, 0);
|
||||
g_free (buf->empty_seg);
|
||||
buf->empty_seg = NULL;
|
||||
gst_caps_replace (&buf->spec.caps, NULL);
|
||||
|
|
Loading…
Reference in a new issue