validate: Avoid segfault in the error path
This commit is contained in:
parent
f8a37a1c80
commit
822c7eaa6e
@ -519,7 +519,8 @@ gst_media_descriptor_writer_new_discover (GstValidateRunner * runner,
|
||||
if (info == NULL
|
||||
|| gst_discoverer_info_get_result (info) != GST_DISCOVERER_OK) {
|
||||
|
||||
GST_ERROR ("Could not discover URI: %s (erro: %s", uri, (*err)->message);
|
||||
GST_ERROR ("Could not discover URI: %s (error: %s(", uri,
|
||||
err && *err ? (*err)->message : "Unkown");
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user