gldownload: warn on fallback from DMABuf to system memory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8013>
This commit is contained in:
parent
85969fdaa7
commit
2209d4382f
@ -1417,8 +1417,11 @@ gst_gl_download_element_prepare_output_buffer (GstBaseTransform * bt,
|
|||||||
ret = gst_base_transform_update_src_caps (bt, src_caps);
|
ret = gst_base_transform_update_src_caps (bt, src_caps);
|
||||||
gst_caps_unref (src_caps);
|
gst_caps_unref (src_caps);
|
||||||
|
|
||||||
if (!ret) {
|
if (ret) {
|
||||||
GST_ERROR_OBJECT (bt, "DMABuf exportation didn't work and system "
|
GST_WARNING_OBJECT (bt, "DMABuf export didn't work. Falling back to "
|
||||||
|
"system memory.");
|
||||||
|
} else {
|
||||||
|
GST_ERROR_OBJECT (bt, "DMABuf export didn't work and system "
|
||||||
"memory is not supported.");
|
"memory is not supported.");
|
||||||
return GST_FLOW_NOT_NEGOTIATED;
|
return GST_FLOW_NOT_NEGOTIATED;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user