diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2017-09-04 09:34:03 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-09-04 08:46:07 +0100 |
commit | 318ef5b3578b64cb945634f875983b0a13c6c277 (patch) | |
tree | 783dcb718b56457d648c620409702373d00a5ddc | |
parent | 054d5da46eb2a2198e32e103b2ecf31ba6b9fc46 (diff) | |
download | gst-omx-318ef5b3578b64cb945634f875983b0a13c6c277.tar.gz |
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
-rw-r--r-- | omx/gstomx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index 191b719..f2a2dd1 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; } |