mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
vaapidecode: negotiate after destroying allocator
This is related with bug 758907 when no vaapipostproc is used (no vaapidecodebin). In order to negotiate downstream we need to destroy the source pad allocator, otherwise the same allocated buffers are used, failing the mapping.
This commit is contained in:
parent
22463b96f3
commit
f09d9ff2ab
1 changed files with 2 additions and 2 deletions
|
@ -469,10 +469,10 @@ gst_vaapidecode_negotiate (GstVaapiDecode * decode)
|
|||
return FALSE;
|
||||
if (!gst_vaapidecode_update_src_caps (decode))
|
||||
return FALSE;
|
||||
if (!gst_video_decoder_negotiate (vdec))
|
||||
return FALSE;
|
||||
if (!gst_vaapi_plugin_base_set_caps (plugin, NULL, decode->srcpad_caps))
|
||||
return FALSE;
|
||||
if (!gst_video_decoder_negotiate (vdec))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue