dataurisrc: Remove unnecessary else if condition
authorVineeth T M <vineeth.tm@samsung.com>
Thu, 4 Sep 2014 08:08:21 +0000 (13:38 +0530)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 4 Sep 2014 08:31:56 +0000 (11:31 +0300)
commit23f7a2cc63aa488d31671979cdf8259a4677afa5
tree2fe5c358bd4823a8484110c71bce1bf7810d890c
parent53efa969db7ccae5020fa76d9f102e9a04faef15
dataurisrc: Remove unnecessary else if condition

In gst_data_uri_src_create(), buf cannot be NULL, hence
else if (*buf != NULL) will be invalid so removing the
else if condition and adding a check to unreference buf
in else condition, just in case

https://bugzilla.gnome.org/show_bug.cgi?id=735861
plugins/elements/gstdataurisrc.c