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