mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gstobject: also remove the cast as this is causing the trouble
This commit is contained in:
parent
df099959fd
commit
febde0c19f
1 changed files with 1 additions and 2 deletions
|
@ -446,8 +446,7 @@ gst_object_replace (GstObject ** oldobj, GstObject * newobj)
|
|||
g_object_ref (newobj);
|
||||
do {
|
||||
oldptr = *oldobj;
|
||||
} while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE ((void *) oldobj,
|
||||
oldptr, newobj));
|
||||
} while (!G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE (oldobj, oldptr, newobj));
|
||||
if (oldptr)
|
||||
g_object_unref (oldptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue