validate: Avoid segfault in the error path

This commit is contained in:
Thibault Saunier 2014-07-15 12:16:34 +02:00
parent f8a37a1c80
commit 822c7eaa6e

View File

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