vaapipluginbase: Override downstream allocation reply if no pool

If the downstream replied without a pool, then override it.

https://bugzilla.gnome.org/show_bug.cgi?id=748559
This commit is contained in:
Olivier Crete 2015-06-17 09:53:29 +03:00 committed by Sreerenj Balachandran
parent cbc2d15bec
commit 3241296f67

View file

@ -687,10 +687,9 @@ gst_vaapi_plugin_base_decide_allocation (GstVaapiPluginBase * plugin,
if (gst_query_get_n_allocation_pools (query) > 0) {
gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max);
update_pool = (pool != NULL);
update_pool = TRUE;
size = MAX (size, vi.size);
if (pool) {
size = MAX (size, vi.size);
/* Check whether downstream element proposed a bufferpool but did
not provide a correct propose_allocation() implementation */
has_video_alignment = gst_buffer_pool_has_option (pool,