17 #include "miniobject.h" 18 #include "objectstore_p.h" 23 MiniObjectPtr MiniObject::copy()
const 28 bool MiniObject::isWritable()
const 30 return gst_mini_object_is_writable(object<GstMiniObject>());
33 void MiniObject::ref(
bool increaseRef)
35 if (Private::ObjectStore::put(
this)) {
37 gst_mini_object_ref(GST_MINI_OBJECT(m_object));
42 void MiniObject::unref()
44 if (Private::ObjectStore::take(
this)) {
45 gst_mini_object_unref(GST_MINI_OBJECT(m_object));
50 MiniObjectPtr MiniObject::makeWritable()
const 61 return MiniObjectPtr(const_cast<MiniObject*>(
this));
static RefPointer< T > wrap(typename T::CType *nativePtr, bool increaseRef=true)
Wrappers for GStreamer classes.
RefCountedObject * constructWrapper(Type instanceType, void *instance)
Base class for all the reference-counted object wrappers.