if (err)
g_propagate_error (error, err);
if (!asset || (error && *error)) {
+
+ if (error && !*error) {
+ *error = g_error_new (GES_ERROR, 0,
+ "There was an error requesting the asset with id %s and type %s (%s)",
+ id, g_type_name (type), error ? (*error)->message : "unknown");
+ }
+
GST_ERROR
("There was an error requesting the asset with id %s and type %s (%s)",
id, g_type_name (type), error ? (*error)->message : "unknown");
}
if (!layer) {
- g_error_new (GES_ERROR, 0, "No layer with priority %d", layer_priority);
+ *error =
+ g_error_new (GES_ERROR, 0, "No layer with priority %d", layer_priority);
goto beach;
}
if (!func (timeline, action->structure, &err)) {
GST_VALIDATE_REPORT (scenario,
- g_quark_from_string ("scenario::execution-error"), err->message);
+ g_quark_from_string ("scenario::execution-error"),
+ "Could not execute %s (error: %s)",
+ gst_structure_get_name (action->structure),
+ err ? err->message : "None");
g_clear_error (&err);