diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-03-15 13:16:39 +0000 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-03-15 14:53:47 +0100 |
commit | aa6bd1361421f90176650a549c4e83e926313e27 (patch) | |
tree | 8e22420fcd5406eafd22e274f6d2e03d874ee60f | |
parent | a9fb801e45ad2368fabae5f483ced9ad484f4fbd (diff) | |
download | gst-omx-aa6bd1361421f90176650a549c4e83e926313e27.tar.gz |
omx: improve debug logging some more
-rw-r--r-- | omx/gstomx.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index cab143d..1f48002 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -415,7 +415,7 @@ EventHandler (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, { OMX_COMMANDTYPE cmd = (OMX_COMMANDTYPE) nData1; - GST_DEBUG_OBJECT (comp->parent, "%s command %s complete (%d)", + GST_DEBUG_OBJECT (comp->parent, "%s %s command complete (%d)", comp->name, gst_omx_command_to_string (cmd), cmd); switch (cmd) { @@ -753,8 +753,8 @@ gst_omx_component_set_state (GstOMXComponent * comp, OMX_STATETYPE state) gst_omx_component_handle_messages (comp); old_state = comp->state; - GST_INFO_OBJECT (comp->parent, "Setting %s state from %d to %d", comp->name, - old_state, state); + GST_INFO_OBJECT (comp->parent, "Setting %s state from %s to %s", comp->name, + gst_omx_state_to_string (old_state), gst_omx_state_to_string (state)); if ((err = comp->last_error) != OMX_ErrorNone && state > old_state) { GST_ERROR_OBJECT (comp->parent, "Component %s in error state: %s (0x%08x)", @@ -763,8 +763,8 @@ gst_omx_component_set_state (GstOMXComponent * comp, OMX_STATETYPE state) } if (old_state == state || comp->pending_state == state) { - GST_DEBUG_OBJECT (comp->parent, "Component %s already in state %d", - comp->name, state); + GST_DEBUG_OBJECT (comp->parent, "Component %s already in state %s", + comp->name, gst_omx_state_to_string (state)); goto done; } @@ -882,7 +882,8 @@ gst_omx_component_get_state (GstOMXComponent * comp, GstClockTime timeout) done: g_mutex_unlock (comp->lock); - GST_DEBUG_OBJECT (comp->parent, "%s returning state %d", comp->name, ret); + GST_DEBUG_OBJECT (comp->parent, "%s returning state %s", comp->name, + gst_omx_state_to_string (ret)); return ret; } @@ -1083,8 +1084,8 @@ gst_omx_component_setup_tunnel (GstOMXComponent * comp1, GstOMXPort * port1, g_mutex_lock (comp1->lock); g_mutex_lock (comp2->lock); GST_DEBUG_OBJECT (comp1->parent, - "Setup tunnel between %p port %u and %p port %u", - comp1, port1->index, comp2, port2->index); + "Setup tunnel between %s port %u and %s port %u", + comp1->name, port1->index, comp2->name, port2->index); err = comp1->core->setup_tunnel (comp1->handle, port1->index, comp2->handle, port2->index); @@ -1095,9 +1096,9 @@ gst_omx_component_setup_tunnel (GstOMXComponent * comp1, GstOMXPort * port1, } GST_DEBUG_OBJECT (comp1->parent, - "Setup tunnel between %p port %u and %p port %u: %s (0x%08x)", - comp1, port1->index, - comp2, port2->index, gst_omx_error_to_string (err), err); + "Setup tunnel between %s port %u and %s port %u: %s (0x%08x)", + comp1->name, port1->index, + comp2->name, port2->index, gst_omx_error_to_string (err), err); g_mutex_unlock (comp2->lock); g_mutex_unlock (comp1->lock); @@ -1129,8 +1130,8 @@ gst_omx_component_close_tunnel (GstOMXComponent * comp1, GstOMXPort * port1, g_mutex_lock (comp1->lock); g_mutex_lock (comp2->lock); GST_DEBUG_OBJECT (comp1->parent, - "Closing tunnel between %p port %u and %p port %u", - comp1, port1->index, comp2, port2->index); + "Closing tunnel between %s port %u and %s port %u", + comp1->name, port1->index, comp2->name, port2->index); err = comp1->core->setup_tunnel (comp1->handle, port1->index, 0, 0); if (err != OMX_ErrorNone) { @@ -1149,8 +1150,8 @@ gst_omx_component_close_tunnel (GstOMXComponent * comp1, GstOMXPort * port1, port2->tunneled = FALSE; GST_DEBUG_OBJECT (comp1->parent, - "Closed tunnel between %p port %u and %p port %u", - comp1, port1->index, comp2, port2->index); + "Closed tunnel between %s port %u and %s port %u", + comp1->name, port1->index, comp2->name, port2->index); g_mutex_unlock (comp2->lock); g_mutex_unlock (comp1->lock); |