summaryrefslogtreecommitdiff
path: root/gst/gstnicesrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gstnicesrc.c')
-rw-r--r--gst/gstnicesrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index a3f223e..0d39c34 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -429,7 +429,8 @@ gst_nice_src_change_state (GstElement * element, GstStateChange transition)
nice_agent_attach_recv (src->agent, src->stream_id, src->component_id,
src->mainctx, NULL, NULL);
GST_OBJECT_LOCK (src);
- g_queue_free_full (src->outbufs, (GDestroyNotify) gst_buffer_unref);
+ g_list_free_full (src->outbufs->head, (GDestroyNotify) gst_buffer_unref);
+ g_queue_init (src->outbufs);
GST_OBJECT_UNLOCK (src);
break;
case GST_STATE_CHANGE_READY_TO_PAUSED: