GNOME Bugzilla – Bug 736877
gsturi: Remove unnecessary code
Last modified: 2014-09-19 17:00:21 UTC
In gst_uri_handler_set_uri(), 'new_uri' is created using protocol and location, but isn't used. 1. It can be used for set_uri() OR 2. Can be removed
Created attachment 286473 [details] [review] use new_uri for set_uri method patch attached for 1st option. Please review.
Nice! new_uri is unused indeed. Considering that new_uri is created from the split of the original uri's protocol and location. And those two never change during the function. new_uri will always be the same as uri. Plus this never raised any bugs while it used uri in the iface->set_uri() line. I think we can just remove the creation of new_uri and we use set_uri. So number 2 in your list of potential fixes. As soon as you write this patch I will merge it for you :) Thanks
Created attachment 286558 [details] [review] gsturi remove unnecessary code Thanks for the review. Here is the new patch as you suggested.
Great! I will merge this within the day.
Merged.