enable more warnings

Fix some warnings
This commit is contained in:
Wim Taymans 2020-04-01 12:51:42 +02:00
parent edd019d539
commit 7a29c15628
4 changed files with 26 additions and 7 deletions

View file

@ -194,10 +194,15 @@ clock_disabled:
}
}
static void unref_queue_item(gpointer data, gpointer user_data)
{
gst_mini_object_unref(data);
}
static void
clear_queue (GstPipeWireSrc *pwsrc)
{
g_queue_foreach (&pwsrc->queue, (GFunc) gst_mini_object_unref, NULL);
g_queue_foreach (&pwsrc->queue, unref_queue_item, pwsrc);
g_queue_clear (&pwsrc->queue);
}