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