uri: add guard to make sure gstreamer is initialized

https://bugzilla.gnome.org/show_bug.cgi?id=761448
This commit is contained in:
Tim-Philipp Müller 2016-02-02 10:56:35 +00:00
parent 961ee1910e
commit f90126a62e

View file

@ -994,6 +994,9 @@ static GstUri *
_gst_uri_new (void)
{
GstUri *uri;
g_return_val_if_fail (gst_is_initialized (), NULL);
uri = GST_URI_CAST (g_slice_new0 (GstUri));
if (uri)