After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748559 - vaapipluginbase: Update the pool if there was no pool in the downstream reply
vaapipluginbase: Update the pool if there was no pool in the downstream reply
Status: RESOLVED FIXED
Product: gstreamer-vaapi
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gstreamer-vaapi maintainer(s)
gstreamer-vaapi maintainer(s)
Depends on:
Blocks: 743569
 
 
Reported: 2015-04-27 23:26 UTC by Olivier Crête
Modified: 2015-06-17 06:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vaapipluginbase: Update the pool if there was no pool in the downstream reply (1.10 KB, patch)
2015-04-27 23:26 UTC, Olivier Crête
none Details | Review
vaapipluginbase: Update the pool if there was no pool in the downstream reply (1.91 KB, patch)
2015-04-29 10:07 UTC, Víctor Manuel Jáquez Leal
committed Details | Review
vaapipluginbase: Override downstream allocation reply if no pool (1.19 KB, patch)
2015-06-12 00:07 UTC, Olivier Crête
none Details | Review

Description Olivier Crête 2015-04-27 23:26:46 UTC
Created attachment 302488 [details] [review]
vaapipluginbase: Update the pool if there was no pool in the  downstream reply

Fix regression introduced by bd866479, the query after decide_allocation()
always needs a pool in the first slot.
Comment 1 Gwenole Beauchesne 2015-04-28 08:28:55 UTC
Review of attachment 302488 [details] [review]:

I think the real issue is that update_pool is not inititalized.

IMHO, the correct fix would be update_pool = pool != NULL; or leave it as is but pre-initialize update_pool to FALSE upper when it is declared.
Comment 2 Víctor Manuel Jáquez Leal 2015-04-29 10:07:51 UTC
Created attachment 302550 [details] [review]
vaapipluginbase: Update the pool if there was no pool in the downstream reply

Fix regression introduced by bd866479, the query after decide_allocation()
always needs a pool in the first slot.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 3 Víctor Manuel Jáquez Leal 2015-04-29 10:12:34 UTC
Comment on attachment 302550 [details] [review]
vaapipluginbase: Update the pool if there was no pool in the downstream reply

commit d70a2e8d130f4bff935d674ce0f8ee8bede6867e
Author: Olivier Crete <olivier.crete@collabora.com>
Date:   Mon Apr 27 19:21:12 2015 -0400

    vaapipluginbase: Update the pool if there was no pool in the downstream reply
    
    Fix regression introduced by bd866479, the query after decide_allocation()
    always needs a pool in the first slot.
    
    Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748559
Comment 4 Olivier Crête 2015-06-12 00:06:22 UTC
This fix here was not correct, I can still make it fail, in case case where there was a NULL entry in the query, we need to "update" it.
Comment 5 Olivier Crête 2015-06-12 00:07:35 UTC
Created attachment 305105 [details] [review]
vaapipluginbase: Override downstream allocation reply if no pool

If the downstream replied without a pool, then override it.
Comment 6 sreerenj 2015-06-17 06:56:08 UTC
Pushed, thanks for the patch.

commit 3241296f67be75a100a7926eee5a7918dd66dc08
Author: Olivier Crete <olivier.crete@collabora.com>
Date:   Wed Jun 17 09:53:29 2015 +0300

    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