mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
rtspconnection: don't use GLib-2.16 API, we require only 2.14
Fixes #579267.
This commit is contained in:
parent
32904de58f
commit
418760cf74
1 changed files with 5 additions and 1 deletions
|
@ -2808,9 +2808,12 @@ static void
|
||||||
gst_rtsp_source_finalize (GSource * source)
|
gst_rtsp_source_finalize (GSource * source)
|
||||||
{
|
{
|
||||||
GstRTSPWatch *watch = (GstRTSPWatch *) source;
|
GstRTSPWatch *watch = (GstRTSPWatch *) source;
|
||||||
|
gpointer rtsp_rec;
|
||||||
|
|
||||||
build_reset (&watch->builder);
|
build_reset (&watch->builder);
|
||||||
|
|
||||||
|
while ((rtsp_rec = g_async_queue_try_pop (watch->messages)))
|
||||||
|
gst_rtsp_rec_free (rtsp_rec);
|
||||||
g_async_queue_unref (watch->messages);
|
g_async_queue_unref (watch->messages);
|
||||||
watch->messages = NULL;
|
watch->messages = NULL;
|
||||||
|
|
||||||
|
@ -2862,7 +2865,8 @@ gst_rtsp_watch_new (GstRTSPConnection * conn,
|
||||||
result->conn = conn;
|
result->conn = conn;
|
||||||
result->builder.state = STATE_START;
|
result->builder.state = STATE_START;
|
||||||
|
|
||||||
result->messages = g_async_queue_new_full (gst_rtsp_rec_free);
|
/* FIXME: use g_async_queue_new_full() once we depend on GLib >= 2.16 */
|
||||||
|
result->messages = g_async_queue_new ();
|
||||||
|
|
||||||
result->readfd.fd = -1;
|
result->readfd.fd = -1;
|
||||||
result->writefd.fd = -1;
|
result->writefd.fd = -1;
|
||||||
|
|
Loading…
Reference in a new issue