[vlc-devel] picture_Copy and p_sys

Rémi Denis-Courmont remi at remlab.net
Tue Mar 10 21:52:22 CET 2015

Le mardi 10 mars 2015, 14:50:45 Jeff J a écrit :
> I'm trying to save a buffer of some pictures (I'm working in
> video_output.c). When I do picture_Copy it doesn't copy the p_sys member of
> picture_t. I can't copy it manually because picture_sys_t is an incomplete
> type. Is there a preferred way to copy p_sys so I can save a picture_t for
> displaying later?

picture_tp_sys is tied to the allocator of the picture. If you copy the 
picture, you allocate it, so you have to have your own p_sys.

At least that is how it is currently supposed to work.

Rémi Denis-Courmont

More information about the vlc-devel mailing list