From 50e9cc7f04da3e431e09bed753dc7badc1e4f930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 4 Sep 2015 15:18:05 +0300 Subject: [PATCH] udpsrc: Fix build with GLib < 2.44 G_IO_ERROR_CONNECTION_CLOSED was added in 2.44. --- gst/udp/gstudpsrc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index b6b2e20f63..b4ebba46c7 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -580,8 +580,12 @@ retry: * with udpsink generated a "port unreachable" ICMP response. We ignore * that and try again. * On Windows we get G_IO_ERROR_CONNECTION_CLOSED instead */ +#if GLIB_CHECK_VERSION(2,44,0) if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_HOST_UNREACHABLE) || g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED)) { +#else + if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_HOST_UNREACHABLE)) { +#endif g_clear_error (&err); goto retry; }