caps: When getting capsfeatures and none are there, store sysmem capsfeatures
authorSebastian Dröge <sebastian@centricular.com>
Tue, 4 Feb 2014 17:42:02 +0000 (18:42 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 4 Feb 2014 17:47:23 +0000 (18:47 +0100)
commit8d7e11e307dbd4a8a8a053f2a05af1098957a070
tree00c98e0e3052a370ef2fc53a158637e65027596a
parente51e0cb0d3722f0d95128ad8ec7e79ae7b5e568a
caps: When getting capsfeatures and none are there, store sysmem capsfeatures

... instead of returning a reference to a global instance. The caller might
want to change the global instance otherwise, which causes funny effects like
all global instances being changed and at the same time nothing in the caps
being changed.

As the caps might be immutable while we do this we have to do some magic
with atomic operations.

https://bugzilla.gnome.org/show_bug.cgi?id=723236
gst/gstcaps.c