replace
function replace(olddata:Gst.MiniObject, newdata:Gst.MiniObject):Boolean { // Gjs wrapper for gst_mini_object_replace() }
Atomically modifies a pointer to point to a new mini-object. The reference count of olddata is decreased and the reference count of newdata is increased.
Either newdata and the value pointed to by olddata may be NULL.
- olddata
pointer to a pointer to a mini-object to be replaced
- newdata
pointer to new mini-object
- Returns
TRUE if newdata was different from olddata