mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glupload: debug output from dmabuf and dmabuf_direct upload transform_caps
https://bugzilla.gnome.org/show_bug.cgi?id=783521
This commit is contained in:
parent
58399b20bd
commit
c4edd80c8c
1 changed files with 8 additions and 0 deletions
|
@ -516,6 +516,7 @@ static GstCaps *
|
||||||
_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
||||||
GstPadDirection direction, GstCaps * caps)
|
GstPadDirection direction, GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
struct DmabufUpload *dmabuf = impl;
|
||||||
GstCapsFeatures *passthrough =
|
GstCapsFeatures *passthrough =
|
||||||
gst_caps_features_from_string
|
gst_caps_features_from_string
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
(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_caps_features_free (passthrough);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (dmabuf->upload, "transformed %" GST_PTR_FORMAT " into %"
|
||||||
|
GST_PTR_FORMAT, caps, ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -802,6 +806,7 @@ static GstCaps *
|
||||||
_direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
_direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
||||||
GstPadDirection direction, GstCaps * caps)
|
GstPadDirection direction, GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
struct DmabufUpload *dmabuf = impl;
|
||||||
GstCapsFeatures *passthrough =
|
GstCapsFeatures *passthrough =
|
||||||
gst_caps_features_from_string
|
gst_caps_features_from_string
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
(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_caps_features_free (passthrough);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (dmabuf->upload, "transformed %" GST_PTR_FORMAT " into %"
|
||||||
|
GST_PTR_FORMAT, caps, ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue