[vlc-devel] [PATCH v2 11/14] picture: pass the opaque pointer to the destroy callback rather than the picture

Rémi Denis-Courmont remi at remlab.net
Fri Aug 14 17:43:46 CEST 2020


Le perjantaina 14. elokuuta 2020, 15.01.46 EEST Steve Lhomme a écrit :
> The resource desctrutor shouldn't have to know much about the picture nor if
> it's still allocated or not.

Spelling.

> This avoids some container_of in the picture_pool.

Well yes, but there could be GC callbacks that need to read some fields in 
picture_t, no?

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list