mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +00:00
pad-monitor: Check if iterator exists before trying to use it
This commit is contained in:
parent
788054bda7
commit
cc65145eb1
1 changed files with 7 additions and 0 deletions
|
@ -701,6 +701,13 @@ static void
|
|||
iter =
|
||||
gst_pad_iterate_internal_links (GST_VALIDATE_PAD_MONITOR_GET_PAD
|
||||
(monitor));
|
||||
|
||||
if (iter == NULL) {
|
||||
GST_WARNING_OBJECT (GST_VALIDATE_PAD_MONITOR_GET_PAD (monitor),
|
||||
"No iterator available");
|
||||
return;
|
||||
}
|
||||
|
||||
done = FALSE;
|
||||
while (!done) {
|
||||
GValue value = { 0, };
|
||||
|
|
Loading…
Reference in a new issue