mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-15 20:05:40 +00:00
rtpst2022-1-fecenc: Don't unconditionally use GLib 2.60 APIs
g_queue_clear_full() in this case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/768>
This commit is contained in:
parent
ed2b5e6cfc
commit
6a84dc4146
1 changed files with 12 additions and 0 deletions
|
@ -70,6 +70,18 @@
|
|||
|
||||
#include "gstrtpst2022-1-fecenc.h"
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 60, 0)
|
||||
#define g_queue_clear_full queue_clear_full
|
||||
static void
|
||||
queue_clear_full (GQueue * queue, GDestroyNotify free_func)
|
||||
{
|
||||
gpointer data;
|
||||
|
||||
while ((data = g_queue_pop_head (queue)) != NULL)
|
||||
free_func (data);
|
||||
}
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_rtpst_2022_1_fecenc_debug);
|
||||
#define GST_CAT_DEFAULT gst_rtpst_2022_1_fecenc_debug
|
||||
|
||||
|
|
Loading…
Reference in a new issue