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:
Jakub Adam 2024-11-29 20:57:09 +01:00 committed by GStreamer Marge Bot
parent 85969fdaa7
commit 2209d4382f

View file

@ -1417,8 +1417,11 @@ gst_gl_download_element_prepare_output_buffer (GstBaseTransform * bt,
ret = gst_base_transform_update_src_caps (bt, src_caps);
gst_caps_unref (src_caps);
if (!ret) {
GST_ERROR_OBJECT (bt, "DMABuf exportation didn't work and system "
if (ret) {
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.");
return GST_FLOW_NOT_NEGOTIATED;
}