summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2017-09-04 09:34:03 +0200
committerTim-Philipp Müller <tim@centricular.com>2017-09-04 08:46:07 +0100
commit318ef5b3578b64cb945634f875983b0a13c6c277 (patch)
tree783dcb718b56457d648c620409702373d00a5ddc
parent054d5da46eb2a2198e32e103b2ecf31ba6b9fc46 (diff)
downloadgst-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.c5
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;
}