pad-monitor: Check if iterator exists before trying to use it

This commit is contained in:
Edward Hervey 2013-09-02 12:18:07 -03:00 committed by Thiago Santos
parent 788054bda7
commit cc65145eb1

View file

@ -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, };