|Structure||copy () const|
Helper for shared GstStructure instances.
This class serves as a helper for wrapping shared GstStructure instances. Some functions in the GStreamer API return a pointer to some internal GstStructure and expect you to change this internal instance, not copy it and re-set it using some setter function (like all normal object-oriented APIs do), so it is necessary to have way of accessing those instances.
This class wraps a GstStructure without copying it and without freeing it from the destructor, unlike Structure, which always keeps a GstStructure instance for itself. In addition to that, this class also holds a reference to the GstStructure's parent object, so that it doesn't accidentally get deleted because its smart pointer has gone out of scope.
Since this class is not copy-able (to prevent misuse), to ease using it, there is a StructurePtr typedef for QSharedPointer<SharedStructure> available. You should only use this class through StructurePtr and not directly.