mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
enable more warnings
Fix some warnings
This commit is contained in:
parent
edd019d539
commit
7a29c15628
4 changed files with 26 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue