rtpjitterbuffer: don't free the serialized query

We should never free a serialized query in the queue, it is the upstream
caller that will free it.
This commit is contained in:
Wim Taymans 2014-04-16 16:51:15 +02:00
parent 6c02593386
commit 233e9e64b8

View file

@ -791,7 +791,7 @@ alloc_item (gpointer data, guint type, GstClockTime dts, GstClockTime pts,
static void
free_item (RTPJitterBufferItem * item)
{
if (item->data)
if (item->data && item->type != ITEM_TYPE_QUERY)
gst_mini_object_unref (item->data);
g_slice_free (RTPJitterBufferItem, item);
}