diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-02-12 14:03:15 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-02-12 14:03:15 +0200 |
commit | ae0b12b109310bc5c6304a0afcd606052263eda7 (patch) | |
tree | 14bde4824623fcee2959239d0ccef4b78ec66ba0 /gst/gstpad.c | |
parent | 5141641dc8bb4132bdb608934630e7242a910256 (diff) |
pad: gst_pad_iterate_internal_links() can return NULL if there are none
Diffstat (limited to 'gst/gstpad.c')
-rw-r--r-- | gst/gstpad.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index f6cdf73b8..32d67568c 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; |