mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
omx: disable OMX_API_TRACE code if gst debug is disabled
No need to create debug structs which won't be used as DEBUG macros are no-op.
This commit is contained in:
parent
01bf661d6e
commit
7d1b77b0c4
1 changed files with 6 additions and 0 deletions
|
@ -612,6 +612,7 @@ static void
|
||||||
log_omx_api_trace_event (GstOMXComponent * comp, OMX_EVENTTYPE event,
|
log_omx_api_trace_event (GstOMXComponent * comp, OMX_EVENTTYPE event,
|
||||||
guint32 data1, guint32 data2, gpointer event_data)
|
guint32 data1, guint32 data2, gpointer event_data)
|
||||||
{
|
{
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
|
|
||||||
/* Don't bother creating useless structs if not needed */
|
/* Don't bother creating useless structs if not needed */
|
||||||
|
@ -629,6 +630,7 @@ log_omx_api_trace_event (GstOMXComponent * comp, OMX_EVENTTYPE event,
|
||||||
GST_CAT_DEBUG_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
GST_CAT_DEBUG_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
||||||
|
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
static OMX_ERRORTYPE
|
static OMX_ERRORTYPE
|
||||||
|
@ -801,6 +803,7 @@ static void
|
||||||
log_omx_api_trace_buffer (GstOMXComponent * comp, const gchar * event,
|
log_omx_api_trace_buffer (GstOMXComponent * comp, const gchar * event,
|
||||||
GstOMXBuffer * buf)
|
GstOMXBuffer * buf)
|
||||||
{
|
{
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
|
|
||||||
/* Don't bother creating useless structs if not needed */
|
/* Don't bother creating useless structs if not needed */
|
||||||
|
@ -838,6 +841,7 @@ log_omx_api_trace_buffer (GstOMXComponent * comp, const gchar * event,
|
||||||
GST_CAT_TRACE_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
GST_CAT_TRACE_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
||||||
|
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
static OMX_ERRORTYPE
|
static OMX_ERRORTYPE
|
||||||
|
@ -1107,6 +1111,7 @@ static void
|
||||||
log_omx_api_trace_send_command (GstOMXComponent * comp, OMX_COMMANDTYPE cmd,
|
log_omx_api_trace_send_command (GstOMXComponent * comp, OMX_COMMANDTYPE cmd,
|
||||||
guint32 param, gpointer cmd_data)
|
guint32 param, gpointer cmd_data)
|
||||||
{
|
{
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
|
|
||||||
/* Don't bother creating useless structs if not needed */
|
/* Don't bother creating useless structs if not needed */
|
||||||
|
@ -1123,6 +1128,7 @@ log_omx_api_trace_send_command (GstOMXComponent * comp, OMX_COMMANDTYPE cmd,
|
||||||
GST_CAT_DEBUG_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
GST_CAT_DEBUG_OBJECT (OMX_API_TRACE, comp->parent, "%" GST_PTR_FORMAT, s);
|
||||||
|
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
static OMX_ERRORTYPE
|
static OMX_ERRORTYPE
|
||||||
|
|
Loading…
Reference in a new issue