Revert "structure: don't check type twice"
Revert "structure: don't check type twice"

This reverts commit f864187bf5fdfaf71f2e038949e403a42e6daf0e.

Reverting this as it changes behaviour and the documentation is
ambiguous about whether the caller must check the type first or
not (call must check type vs. returns NULL if not a string). If
GLib has been compiled with G_DISABLE_CHECKS then g_value_get_string()
may return complete garbage even if the value does not contain
a string. Better play it safe, esp. since the extra check is just
an integer comparison. For fundamental types we could return values
from the GValue structure directly if we really wanted to bypass
the extra check.

ylatuya/gstreamer,krichter722/gstreamer,surround-io/gstreamer,jpxiong/gstreamer,cfoch/gstreamer,shelsonjava/gstreamer,cablelabs/gstreamer,Lachann/gstreamer,shelsonjava/gstreamer,krieger-od/gstreamer,StreamUtils/gstreamer,jpakkane/gstreamer,jpxiong/gstreamer,centricular/gstreamer,drothlis/gstreamer,collects/gstreamer,jpxiong/gstreamer,centricular/gstreamer,centricular/gstreamer,cfoch/gstreamer,mparis/gstreamer,mparis/gstreamer,mrchapp/gstreamer,Lachann/gstreamer,lubosz/gstreamer,StreamUtils/gstreamer,mrchapp/gstreamer,shelsonjava/gstreamer,justinjoy/gstreamer,ensonic/gstreamer,lubosz/gstreamer,cfoch/gstreamer,drothlis/gstreamer,Lachann/gstreamer,jpakkane/gstreamer,StreamUtils/gstreamer,Distrotech/gstreamer,magcius/gstreamer,lovebug356/gstreamer,ensonic/gstreamer,StreamUtils/gstreamer,cablelabs/gstreamer,magcius/gstreamer,jpxiong/gstreamer,krichter722/gstreamer,lovebug356/gstreamer,cablelabs/gstreamer,krichter722/gstreamer,cfoch/gstreamer,StreamUtils/gstreamer,drothlis/gstreamer,cablelabs/gstreamer,krichter722/gstreamer,mrchapp/gstreamer,Distrotech/gstreamer,surround-io/gstreamer,mrchapp/gstreamer,centricular/gstreamer,lubosz/gstreamer,Distrotech/gstreamer,krieger-od/gstreamer,surround-io/gstreamer,ensonic/gstreamer,mrchapp/gstreamer,magcius/gstreamer,collects/gstreamer,jpakkane/gstreamer,cablelabs/gstreamer,ensonic/gstreamer,drothlis/gstreamer,collects/gstreamer,collects/gstreamer,ahmedammar/platform_external_gst_gstreamer,shelsonjava/gstreamer,justinjoy/gstreamer,Distrotech/gstreamer,mparis/gstreamer,lovebug356/gstreamer,centricular/gstreamer,ahmedammar/platform_external_gst_gstreamer,jpxiong/gstreamer,justinjoy/gstreamer,drothlis/gstreamer,lubosz/gstreamer,Lachann/gstreamer,ahmedammar/platform_external_gst_gstreamer,krieger-od/gstreamer,lubosz/gstreamer,ahmedammar/platform_external_gst_gstreamer,mparis/gstreamer,lovebug356/gstreamer,shelsonjava/gstreamer,cfoch/gstreamer,krieger-od/gstreamer,justinjoy/gstreamer,ylatuya/gstreamer,magcius/gstreamer,magcius/gstreamer,lovebug356/gstreamer,jpakkane/gstreamer,Distrotech/gstreamer,ahmedammar/platform_external_gst_gstreamer,ylatuya/gstreamer,justinjoy/gstreamer,ylatuya/gstreamer,surround-io/gstreamer,krichter722/gstreamer,ensonic/gstreamer,surround-io/gstreamer,Lachann/gstreamer,ylatuya/gstreamer,krieger-od/gstreamer,collects/gstreamer,jpakkane/gstreamer,mparis/gstreamer