memory: gst_memory_share may fail to exclusively lock the parent memory
authorMatthew Waters <matthew@centricular.com>
Tue, 2 Jun 2015 06:14:50 +0000 (16:14 +1000)
committerMatthew Waters <matthew@centricular.com>
Wed, 3 Jun 2015 10:41:44 +0000 (20:41 +1000)
commite9c15d53212ff424a047e933ca9ab662ae155b56
tree7f92ce7bcbb2e820197068b66bdf5cbbe24c2a16
parenteb71ee40407a4dbd1016c962f8ef36b8d6b4a8b5
memory: gst_memory_share may fail to exclusively lock the parent memory

Now that locking exclusively dows not always succeed, we need to signal
the failure case from gst_memory_init.

Rather than introducing an API or funcionality change to gst_memory_init,
workaround by checking exclusivity in the calling code.

https://bugzilla.gnome.org/show_bug.cgi?id=750172
gst/gstmemory.c
tests/check/gst/gstmemory.c