Skip to content
  • Julian Scheel's avatar
    mmal: Fix picture passing through mmal · 4d692bf0
    Julian Scheel authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    Assign the picture pointer to mmal buffers user_data right before passing it
    into mmal instead of doing it in mmal_picture_lock. This is necessary, because
    the picture pointer used to call mmal_picture_lock points to the original
    picture instance, while the picture handed to the plugins from
    picture_pool_Get is a clone of the original picture. Assigning the picture in
    user_data caused picture_Release to be called on the original instead of the
    clone. Since commit 22e61f10
    
     this is fatal as the pf_destroy pointer is not
    pointing to picture_pool_ReleasePicture anymore.
    
    Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    4d692bf0