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:
Víctor Manuel Jáquez Leal 2016-11-21 18:42:02 +01:00
parent 22463b96f3
commit f09d9ff2ab

View file

@ -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;
}