mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
miniobject: avoid unneeded casts
This commit is contained in:
parent
633e8f4d9f
commit
bb780fdf73
1 changed files with 2 additions and 2 deletions
|
@ -273,12 +273,12 @@ gst_mini_object_make_writable (GstMiniObject * mini_object)
|
|||
g_return_val_if_fail (mini_object != NULL, NULL);
|
||||
|
||||
if (gst_mini_object_is_writable (mini_object)) {
|
||||
ret = (GstMiniObject *) mini_object;
|
||||
ret = mini_object;
|
||||
} else {
|
||||
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy %s miniobject",
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (mini_object)));
|
||||
ret = gst_mini_object_copy (mini_object);
|
||||
gst_mini_object_unref ((GstMiniObject *) mini_object);
|
||||
gst_mini_object_unref (mini_object);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue