From f90126a62e6b87db0c7627a86a40ed32e6d7334d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 2 Feb 2016 10:56:35 +0000 Subject: [PATCH] uri: add guard to make sure gstreamer is initialized https://bugzilla.gnome.org/show_bug.cgi?id=761448 --- gst/gsturi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/gsturi.c b/gst/gsturi.c index 8623d44659..4ad7d3dc42 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -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)