Fix structure handling (almost) of caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Apr 2009 14:53:25 +0000 (16:53 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Apr 2009 14:56:14 +0000 (16:56 +0200)
commit0c50db66f0e4707c1929c82bf2791d3c402ebf96
treed52d2c02f6ad4ba43e518bc21ac065fe050ad111
parentf15f6c00911b27e2cb2145cb3cea28ca9d673625
Fix structure handling (almost) of caps

Make sure that we a) don't free structures of caps as we don't own them
and b) make sure to create a copy of all still referenced structures
before it gets removed, the caps are unreffed or something else happens.

This still needs to be fixed for gst_caps_do_simplify()!

This workaround is inspired by the one in gst-python.
gstreamer-sharp/Caps.custom
gstreamer-sharp/Gstreamer.metadata
gstreamer-sharp/Structure.custom