diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-11-30 10:41:36 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-11-30 10:41:36 +0100 |
commit | b7e7c9108ac453ca1f74eb35c8d111a40d37aee1 (patch) | |
tree | 8c9551e3ab0c05b0aa1aaa85796e1568a234e02d /gst/gstbin.c | |
parent | 693a1c7080ee93082bd2c4f5c80fcfc1f14e0766 (diff) |
bin: remove some casts
Diffstat (limited to 'gst/gstbin.c')
-rw-r--r-- | gst/gstbin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gstbin.c b/gst/gstbin.c index cb50b9c76..13b1f9fa9 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -1073,7 +1073,7 @@ gst_bin_add_func (GstBin * bin, GstElement * element) GST_DEBUG_OBJECT (bin, "element :%s", GST_ELEMENT_NAME (element)); /* we obviously can't add ourself to ourself */ - if (G_UNLIKELY (GST_ELEMENT_CAST (element) == GST_ELEMENT_CAST (bin))) + if (G_UNLIKELY (element == GST_ELEMENT_CAST (bin))) goto adding_itself; /* get the element name to make sure it is unique in this bin. */ @@ -1180,10 +1180,10 @@ no_state_recalc: /* post the messages on the bus of the element so that the bin can handle * them */ if (clock_message) - gst_element_post_message (GST_ELEMENT_CAST (element), clock_message); + gst_element_post_message (element, clock_message); if (async_message) - gst_element_post_message (GST_ELEMENT_CAST (element), async_message); + gst_element_post_message (element, async_message); /* unlink all linked pads */ it = gst_element_iterate_pads (element); |