mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
pad: gst_pad_iterate_internal_links() can return NULL if there are none
This commit is contained in:
parent
5141641dc8
commit
ae0b12b109
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue