From 2c4dcf418abd5abc13b5ac260581f6b5f1b21a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 3 Aug 2011 15:35:01 +0200 Subject: [PATCH] omx: Improve debugging in param/config getter/setter wrappers --- omx/gstomx.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 591d698a17..603c552ebc 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -746,9 +746,9 @@ gst_omx_component_get_parameter (GstOMXComponent * comp, OMX_INDEXTYPE index, g_return_val_if_fail (comp != NULL, OMX_ErrorUndefined); g_return_val_if_fail (param != NULL, OMX_ErrorUndefined); - GST_DEBUG_OBJECT (comp->parent, "Getting parameter at index %u", index); + GST_DEBUG_OBJECT (comp->parent, "Getting parameter at index 0x%08x", index); err = OMX_GetParameter (comp->handle, index, param); - GST_DEBUG_OBJECT (comp->parent, "Got parameter at index %u: %s (0x%08x)", + GST_DEBUG_OBJECT (comp->parent, "Got parameter at index 0x%08x: %s (0x%08x)", index, gst_omx_error_to_string (err), err); return err; @@ -763,9 +763,9 @@ gst_omx_component_set_parameter (GstOMXComponent * comp, OMX_INDEXTYPE index, g_return_val_if_fail (comp != NULL, OMX_ErrorUndefined); g_return_val_if_fail (param != NULL, OMX_ErrorUndefined); - GST_DEBUG_OBJECT (comp->parent, "Setting parameter at index %u", index); + GST_DEBUG_OBJECT (comp->parent, "Setting parameter at index 0x%08x", index); err = OMX_SetParameter (comp->handle, index, param); - GST_DEBUG_OBJECT (comp->parent, "Set parameter at index %u: %s (0x%08x)", + GST_DEBUG_OBJECT (comp->parent, "Set parameter at index 0x%08x: %s (0x%08x)", index, gst_omx_error_to_string (err), err); return err; @@ -780,9 +780,10 @@ gst_omx_component_get_config (GstOMXComponent * comp, OMX_INDEXTYPE index, g_return_val_if_fail (comp != NULL, OMX_ErrorUndefined); g_return_val_if_fail (config != NULL, OMX_ErrorUndefined); - GST_DEBUG_OBJECT (comp->parent, "Getting configuration at index %u", index); + GST_DEBUG_OBJECT (comp->parent, "Getting configuration at index 0x%08x", + index); err = OMX_GetConfig (comp->handle, index, config); - GST_DEBUG_OBJECT (comp->parent, "Got parameter at index %u: %s (0x%08x)", + GST_DEBUG_OBJECT (comp->parent, "Got parameter at index 0x%08x: %s (0x%08x)", index, gst_omx_error_to_string (err), err); return err; @@ -797,9 +798,10 @@ gst_omx_component_set_config (GstOMXComponent * comp, OMX_INDEXTYPE index, g_return_val_if_fail (comp != NULL, OMX_ErrorUndefined); g_return_val_if_fail (config != NULL, OMX_ErrorUndefined); - GST_DEBUG_OBJECT (comp->parent, "Setting configuration at index %u", index); + GST_DEBUG_OBJECT (comp->parent, "Setting configuration at index 0x%08x", + index); err = OMX_SetConfig (comp->handle, index, config); - GST_DEBUG_OBJECT (comp->parent, "Set parameter at index %u: %s (0x%08x)", + GST_DEBUG_OBJECT (comp->parent, "Set parameter at index 0x%08x: %s (0x%08x)", index, gst_omx_error_to_string (err), err); return err;