Unrefs the GstObject pointed to by oldobj, refs newobj and
puts newobj in *oldobj. Be carefull when calling this
function, it does not take any locks. You might want to lock
the object owning oldobj pointer before calling this
function.
Make sure not to LOCK oldobj because it might be unreffed
which could cause a deadlock when it is disposed.
Unrefs the GstObject pointed to by oldobj, refs newobj and puts newobj in *oldobj. Be carefull when calling this function, it does not take any locks. You might want to lock the object owning oldobj pointer before calling this function. Make sure not to LOCK oldobj because it might be unreffed which could cause a deadlock when it is disposed.