pad-monitor: Check if iterator exists before trying to use it
This commit is contained in:
parent
788054bda7
commit
cc65145eb1
@ -701,6 +701,13 @@ static void
|
|||||||
iter =
|
iter =
|
||||||
gst_pad_iterate_internal_links (GST_VALIDATE_PAD_MONITOR_GET_PAD
|
gst_pad_iterate_internal_links (GST_VALIDATE_PAD_MONITOR_GET_PAD
|
||||||
(monitor));
|
(monitor));
|
||||||
|
|
||||||
|
if (iter == NULL) {
|
||||||
|
GST_WARNING_OBJECT (GST_VALIDATE_PAD_MONITOR_GET_PAD (monitor),
|
||||||
|
"No iterator available");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
done = FALSE;
|
done = FALSE;
|
||||||
while (!done) {
|
while (!done) {
|
||||||
GValue value = { 0, };
|
GValue value = { 0, };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user