[vlc-devel] [PATCH 2/2] picture_pool: fix Reserve() not locking/unlocking pictures
Rémi Denis-Courmont
remi at remlab.net
Fri Dec 30 20:32:48 CET 2016
Le vendredi 30 décembre 2016, 17:58:21 Thomas Guillem a écrit :
> Pictures cloned from a reserved pool were not locked/unlocked via the master
> pool callbacks. This commit fixes this issue. See the new comment in
> picture_pool_Reserve().
Whether this is a feature or a bug depends on how you intend to use
lock/unlock.
I am not aware of clear defined semantics at the moment, that video output
displays would actually adhere to, and thus I think that this patch is both
right and wrong depending on the back-end. Or rather, the correctness cannot
be evaluated for lack of criteria.
More importantly, I cannot think of any use case for using the lock and unlock
callbacks, that would be both practically useful for the display plugin, and
safe/valid/well-defined, so I don't really see the point in these extra
intricacies.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list