mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
validate: Avoid segfault when discovering fails
In that case the x->stream_info might not be set
This commit is contained in:
parent
86df60e16f
commit
6104ed184f
1 changed files with 4 additions and 1 deletions
|
@ -1148,7 +1148,10 @@ gst_validate_media_info_compare (GstValidateMediaInfo * expected,
|
|||
}
|
||||
}
|
||||
|
||||
if (expected->stream_info
|
||||
if (extracted->stream_info == NULL || expected->stream_info == NULL) {
|
||||
g_print ("Stream infos could not be retrived, an error occured\n");
|
||||
ret = FALSE;
|
||||
} else if (expected->stream_info
|
||||
&& !gst_caps_is_equal_fixed (expected->stream_info->caps,
|
||||
extracted->stream_info->caps)) {
|
||||
gchar *caps1 = gst_caps_to_string (expected->stream_info->caps);
|
||||
|
|
Loading…
Reference in a new issue