diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-04 16:38:15 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-05 11:19:16 +0200 |
commit | 3b16efa1d13e58e832604a443a12acaa24524a85 (patch) | |
tree | c5016c4f5340c5e8d409c719aba93437670005b1 /gst/gstmessage.c | |
parent | afd5db3c6bea27a8235c45217afa3c2a36a0a6a8 (diff) |
miniobject: add lock functionality to GstMiniObject
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.
Diffstat (limited to 'gst/gstmessage.c')
-rw-r--r-- | gst/gstmessage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstmessage.c b/gst/gstmessage.c index 200a1cd6b..108a023a9 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -239,7 +239,7 @@ static void gst_message_init (GstMessageImpl * message, GstMessageType type, GstObject * src) { - gst_mini_object_init (GST_MINI_OBJECT_CAST (message), _gst_message_type, + gst_mini_object_init (GST_MINI_OBJECT_CAST (message), 0, _gst_message_type, (GstMiniObjectCopyFunction) _gst_message_copy, NULL, (GstMiniObjectFreeFunction) _gst_message_free); |