Skip to content
  • Julian Scheel's avatar
    mmal: Replace global mutex by module-owned mutex · fc5204e3
    Julian Scheel authored and Rémi Denis-Courmont's avatar Rémi Denis-Courmont committed
    
    
    The mutex held within mmal_pictures is used to lock access of mmal
    picture/buffer pools between vlc main thread and mmal callback threads. This
    is only required to be locked per pool and not globally for all mmal modules.
    Thus using a global mutex caused a slight performance hit when using mmal vout
    and deinterlace simultaneously which operate on independent picture pools. Now
    the pool owner provides the mutex handle when allocating the pictures, so
    that independent locking can be used.
    
    Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
    Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
    fc5204e3