From ae0b12b109310bc5c6304a0afcd606052263eda7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 12 Feb 2015 14:03:15 +0200 Subject: [PATCH] pad: gst_pad_iterate_internal_links() can return NULL if there are none --- gst/gstpad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/gstpad.c b/gst/gstpad.c index f6cdf73..32d6756 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -3106,6 +3106,10 @@ gst_pad_query_latency_default (GstPad * pad, GstQuery * query) LatencyFoldData fold_data; it = gst_pad_iterate_internal_links (pad); + if (!it) { + GST_DEBUG_OBJECT (pad, "Can't iterate internal links"); + return FALSE; + } retry: fold_data.live = FALSE; -- 2.7.4