mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
uri: add guard to make sure gstreamer is initialized
https://bugzilla.gnome.org/show_bug.cgi?id=761448
This commit is contained in:
parent
961ee1910e
commit
f90126a62e
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue