mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
vaapidecode: set format before decide allocation
There is a regression from commit 3d8e5e. It was expected the buffer pool allocation occur before the caps negotiation, but it is not. This patch fixes this regression: the caps negotiation is done regardless the allocation query from downstream. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=756686
This commit is contained in:
parent
3a2430c789
commit
45487fe87c
1 changed files with 0 additions and 3 deletions
|
@ -213,12 +213,9 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
|||
switch (feature) {
|
||||
#if (USE_GLX || USE_EGL)
|
||||
case GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META:
|
||||
if (decode->has_texture_upload_meta)
|
||||
features =
|
||||
gst_caps_features_new
|
||||
(GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, NULL);
|
||||
else
|
||||
format = GST_VIDEO_FORMAT_I420;
|
||||
break;
|
||||
#endif
|
||||
#if GST_CHECK_VERSION(1,5,0)
|
||||
|
|
Loading…
Reference in a new issue