diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2018-10-17 17:09:26 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-30 12:25:08 +0100 |
commit | c4edd80c8c8f6874db473e070873d32a4d890db6 (patch) | |
tree | 21f47614d750eb3255f7ae3139186dabfb6e6195 | |
parent | 58399b20bdc97fd7bd9ce2c41f3b137920a3df42 (diff) | |
download | gst-plugins-base-c4edd80c8c8f6874db473e070873d32a4d890db6.tar.gz gst-plugins-base-c4edd80c8c8f6874db473e070873d32a4d890db6.tar.xz |
glupload: debug output from dmabuf and dmabuf_direct upload transform_caps
https://bugzilla.gnome.org/show_bug.cgi?id=783521
-rw-r--r-- | gst-libs/gst/gl/gstglupload.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index b6e57105b..51322bbf3 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -516,6 +516,7 @@ static GstCaps * _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, GstPadDirection direction, GstCaps * caps) { + struct DmabufUpload *dmabuf = impl; GstCapsFeatures *passthrough = gst_caps_features_from_string (GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); @@ -563,6 +564,9 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, gst_caps_features_free (passthrough); + GST_DEBUG_OBJECT (dmabuf->upload, "transformed %" GST_PTR_FORMAT " into %" + GST_PTR_FORMAT, caps, ret); + return ret; } @@ -802,6 +806,7 @@ static GstCaps * _direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, GstPadDirection direction, GstCaps * caps) { + struct DmabufUpload *dmabuf = impl; GstCapsFeatures *passthrough = gst_caps_features_from_string (GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); @@ -857,6 +862,9 @@ _direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, gst_caps_features_free (passthrough); + GST_DEBUG_OBJECT (dmabuf->upload, "transformed %" GST_PTR_FORMAT " into %" + GST_PTR_FORMAT, caps, ret); + return ret; } |