• Wim Taymans's avatar
    miniobject: add lock functionality to GstMiniObject · 3b16efa1
    Wim Taymans authored
    Move the locking methods from GstMemory to GstMiniObject.
    Add a miniobject flag to enable LOCKABLE objects. LOCKABLE objects can
    use the lock/unlock API to control the access to the object.
    Add a minobject flag that allows you to lock an object in readonly mode.
    Modify the _is_writable() method to check the shared counter for LOCKABLE
    objects. This allows us to control writability separately from the refcount for
    LOCKABLE objects.
gstbufferlist.c 7.32 KB