mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
vaapidecode: dma caps only use reported color format
This fix pipelines without vaapipostproc after vaapi decoder, such as gst-launch-1.0 filesrc location=~/file.mp4 ! parsebin ! vaapih264dec ! glimagesink On EGL platforms, so DMABuf is used. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/366>
This commit is contained in:
parent
88f3b6b44d
commit
7c2f5f1dd8
1 changed files with 3 additions and 3 deletions
|
@ -263,9 +263,9 @@ gst_vaapidecode_ensure_allowed_srcpad_caps (GstVaapiDecode * decode)
|
||||||
if (GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode)
|
if (GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode)
|
||||||
&& gst_vaapi_mem_type_supports (mem_types,
|
&& gst_vaapi_mem_type_supports (mem_types,
|
||||||
GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)) {
|
GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)) {
|
||||||
dma_caps = gst_caps_from_string (GST_VAAPI_MAKE_DMABUF_CAPS);
|
dma_caps = gst_caps_copy (base_caps);
|
||||||
caps_set_width_and_height_range (dma_caps, min_width, min_height, max_width,
|
gst_caps_set_features_simple (va_caps,
|
||||||
max_height);
|
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_DMABUF));
|
||||||
}
|
}
|
||||||
#if (USE_GLX || USE_EGL)
|
#if (USE_GLX || USE_EGL)
|
||||||
if (!GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode)
|
if (!GST_VAAPI_PLUGIN_BASE_SRC_PAD_CAN_DMABUF (decode)
|
||||||
|
|
Loading…
Reference in a new issue