summaryrefslogtreecommitdiff
authorWim Taymans <wim.taymans@collabora.co.uk>2009-12-24 16:22:46 (GMT)
committer Wim Taymans <wim@metal.(none)>2009-12-24 16:22:46 (GMT)
commitbb780fdf73546ec5604eb95326682bd9d6192807 (patch) (side-by-side diff)
treeaaa0a99f632721f359450ea5f85a2b37270826a2
parent633e8f4d9f095ea17114b1f56450287c3a56e15f (diff)
downloadgstreamer-bb780fdf73546ec5604eb95326682bd9d6192807.zip
gstreamer-bb780fdf73546ec5604eb95326682bd9d6192807.tar.gz
miniobject: avoid unneeded casts
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/gstminiobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstminiobject.c b/gst/gstminiobject.c
index e7e7a32..8836b5d 100644
--- a/gst/gstminiobject.c
+++ b/gst/gstminiobject.c
@@ -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;