Commit bb780fdf authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

miniobject: avoid unneeded casts

parent 633e8f4d
...@@ -273,12 +273,12 @@ gst_mini_object_make_writable (GstMiniObject * mini_object) ...@@ -273,12 +273,12 @@ gst_mini_object_make_writable (GstMiniObject * mini_object)
g_return_val_if_fail (mini_object != NULL, NULL); g_return_val_if_fail (mini_object != NULL, NULL);
if (gst_mini_object_is_writable (mini_object)) { if (gst_mini_object_is_writable (mini_object)) {
ret = (GstMiniObject *) mini_object; ret = mini_object;
} else { } else {
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy %s miniobject", GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "copy %s miniobject",
g_type_name (G_TYPE_FROM_INSTANCE (mini_object))); g_type_name (G_TYPE_FROM_INSTANCE (mini_object)));
ret = gst_mini_object_copy (mini_object); ret = gst_mini_object_copy (mini_object);
gst_mini_object_unref ((GstMiniObject *) mini_object); gst_mini_object_unref (mini_object);
} }
return ret; return ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment