diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-05-14 15:16:38 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-08-30 10:59:30 +0200 |
commit | 998bfbb906f06dddfd5b4ddffef95716c112566d (patch) | |
tree | 713d1137021b233c5b3cfe7ed2e7a891039b9314 | |
parent | f0964dfbdb6075cb0281206af7cd4186565c38df (diff) | |
download | gst-omx-998bfbb906f06dddfd5b4ddffef95716c112566d.tar.gz |
omx: add pBuffer to OMX_PERFORMANCE logs
Can be useful to check the fd being passed when using dmabuf.
https://bugzilla.gnome.org/show_bug.cgi?id=796918
-rw-r--r-- | omx/gstomx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index 2583889..c50480b 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -655,16 +655,18 @@ log_omx_performance (GstOMXComponent * comp, const gchar * event, return; if (buf) { - gchar *buf_str, *omx_buf_str; + gchar *buf_str, *omx_buf_str, *pbuffer_str; /* GST_PTR_FORMAT won't serialize G_TYPE_POINTER fields so stringify pointers */ buf_str = g_strdup_printf ("%p", buf); omx_buf_str = g_strdup_printf ("%p", buf->omx_buf); + pbuffer_str = g_strdup_printf ("%p", buf->omx_buf->pBuffer); /* *INDENT-OFF* */ s = gst_structure_new (event, "GstOMXBuffer", G_TYPE_STRING, buf_str, "OMX-buffer", G_TYPE_STRING, omx_buf_str, + "pBuffer", G_TYPE_STRING, pbuffer_str, "TimeStamp", G_TYPE_UINT64, GST_OMX_GET_TICKS (buf->omx_buf->nTimeStamp), "AllocLen", G_TYPE_UINT, buf->omx_buf->nAllocLen, "FilledLen", G_TYPE_UINT, buf->omx_buf->nFilledLen, @@ -675,6 +677,7 @@ log_omx_performance (GstOMXComponent * comp, const gchar * event, g_free (buf_str); g_free (omx_buf_str); + g_free (pbuffer_str); } else { s = gst_structure_new_empty (event); } |