mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
dtlsenc: Clear the queue when deactivating the pad
This commit is contained in:
parent
4fed95c534
commit
7782bdf286
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ src_activate_mode (GstPad * pad, GstObject * parent, GstPadMode mode,
|
||||||
GST_DEBUG_OBJECT (self, "deactivating src pad");
|
GST_DEBUG_OBJECT (self, "deactivating src pad");
|
||||||
|
|
||||||
g_mutex_lock (&self->queue_lock);
|
g_mutex_lock (&self->queue_lock);
|
||||||
|
g_queue_foreach (&self->queue, (GFunc) gst_buffer_unref, NULL);
|
||||||
|
g_queue_clear (&self->queue);
|
||||||
self->flushing = TRUE;
|
self->flushing = TRUE;
|
||||||
g_cond_signal (&self->queue_cond_add);
|
g_cond_signal (&self->queue_cond_add);
|
||||||
g_mutex_unlock (&self->queue_lock);
|
g_mutex_unlock (&self->queue_lock);
|
||||||
|
|
Loading…
Reference in a new issue