mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
rtpjitterbuffer: g_queue_clear_full introduced in glib 2.60
Define g_queue_clear_full if glib < 2.60. Fixes #747 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/619>
This commit is contained in:
parent
29a661d4a4
commit
bf0842aa0c
1 changed files with 12 additions and 0 deletions
|
@ -269,6 +269,18 @@ enum
|
||||||
#define GST_BUFFER_IS_RETRANSMISSION(buffer) \
|
#define GST_BUFFER_IS_RETRANSMISSION(buffer) \
|
||||||
GST_BUFFER_FLAG_IS_SET (buffer, GST_RTP_BUFFER_FLAG_RETRANSMISSION)
|
GST_BUFFER_FLAG_IS_SET (buffer, GST_RTP_BUFFER_FLAG_RETRANSMISSION)
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
struct _GstRtpJitterBufferPrivate
|
struct _GstRtpJitterBufferPrivate
|
||||||
{
|
{
|
||||||
GstPad *sinkpad, *srcpad;
|
GstPad *sinkpad, *srcpad;
|
||||||
|
|
Loading…
Reference in a new issue