diff --git a/omx/gstomx.c b/omx/gstomx.c index 191b71969e..f2a2dd1d1c 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -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; }