mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
omx: display states as string if changing failed
Improve the error message by displaying the states in their string representation rather than their numerical value. https://bugzilla.gnome.org/show_bug.cgi?id=787235
This commit is contained in:
parent
054d5da46e
commit
318ef5b357
1 changed files with 3 additions and 2 deletions
|
@ -852,8 +852,9 @@ done:
|
|||
|
||||
if (err != OMX_ErrorNone) {
|
||||
GST_ERROR_OBJECT (comp->parent,
|
||||
"Error setting %s state from %d to %d: %s (0x%08x)", comp->name,
|
||||
old_state, state, gst_omx_error_to_string (err), err);
|
||||
"Error setting %s state from %s to %s: %s (0x%08x)", comp->name,
|
||||
gst_omx_state_to_string (old_state), gst_omx_state_to_string (state),
|
||||
gst_omx_error_to_string (err), err);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue