If we complain about wrong parameters passed, also log the actual value.
/* ERROR */
wrong_name:
{
- GST_ERROR ("wrong name, expected video/x-raw");
+ GST_ERROR ("wrong name '%s', expected video/x-raw",
+ gst_structure_get_name (structure));
return FALSE;
}
no_format:
}
unknown_format:
{
- GST_ERROR ("unknown format given");
+ GST_ERROR ("unknown format '%s' given", s);
return FALSE;
}
no_width:
/* ERRORS */
no_metadata:
{
- GST_ERROR ("no GstVideoMeta for id", id);
+ GST_ERROR ("no GstVideoMeta for id %d", id);
return FALSE;
}
invalid_size: