video: log important details and fix format strings
If we complain about wrong parameters passed, also log the actual value.
This commit is contained in:
parent
e4d27cfa60
commit
e9629e37b7
@ -864,7 +864,8 @@ gst_video_info_from_caps (GstVideoInfo * info, const GstCaps * caps)
|
|||||||
/* ERROR */
|
/* ERROR */
|
||||||
wrong_name:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_format:
|
no_format:
|
||||||
@ -874,7 +875,7 @@ no_format:
|
|||||||
}
|
}
|
||||||
unknown_format:
|
unknown_format:
|
||||||
{
|
{
|
||||||
GST_ERROR ("unknown format given");
|
GST_ERROR ("unknown format '%s' given", s);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_width:
|
no_width:
|
||||||
@ -1009,7 +1010,7 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info,
|
|||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
no_metadata:
|
no_metadata:
|
||||||
{
|
{
|
||||||
GST_ERROR ("no GstVideoMeta for id", id);
|
GST_ERROR ("no GstVideoMeta for id %d", id);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
invalid_size:
|
invalid_size:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user