mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
validate: Do not try to use a NULL iter
This commit is contained in:
parent
385d6d4ccd
commit
93bd46dbc2
1 changed files with 13 additions and 0 deletions
|
@ -1095,6 +1095,13 @@ gst_validate_pad_monitor_otherpad_clear_pending_fields (GstValidatePadMonitor *
|
|||
iter =
|
||||
gst_pad_iterate_internal_links (GST_VALIDATE_PAD_MONITOR_GET_PAD
|
||||
(monitor));
|
||||
|
||||
if (iter == NULL) {
|
||||
GST_DEBUG_OBJECT (monitor, "No internally linked pad");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
done = FALSE;
|
||||
while (!done) {
|
||||
GValue value = { 0, };
|
||||
|
@ -1140,6 +1147,12 @@ gst_validate_pad_monitor_add_expected_newsegment (GstValidatePadMonitor *
|
|||
iter =
|
||||
gst_pad_iterate_internal_links (GST_VALIDATE_PAD_MONITOR_GET_PAD
|
||||
(monitor));
|
||||
|
||||
if (iter == NULL) {
|
||||
GST_DEBUG_OBJECT (monitor, "No internally linked pad");
|
||||
return;
|
||||
}
|
||||
|
||||
done = FALSE;
|
||||
while (!done) {
|
||||
GValue value = { 0, };
|
||||
|
|
Loading…
Reference in a new issue