mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
ges: Check that nle is avalaible when initializing
This commit is contained in:
parent
efa220a615
commit
e71e1cc9fb
1 changed files with 14 additions and 0 deletions
14
ges/ges.c
14
ges/ges.c
|
@ -61,6 +61,7 @@ ges_init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
|||
GError ** error)
|
||||
{
|
||||
GESUriClipAssetClass *uriasset_klass = NULL;
|
||||
GstElementFactory *nlecomposition_factory = NULL;
|
||||
|
||||
if (ges_initialized) {
|
||||
GST_DEBUG ("already initialized ges");
|
||||
|
@ -74,6 +75,19 @@ ges_init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
|||
if (!uriasset_klass->sync_discoverer)
|
||||
goto failed;
|
||||
|
||||
nlecomposition_factory = gst_element_factory_find ("nlecomposition");
|
||||
if (!nlecomposition_factory) {
|
||||
GST_ERROR ("The `nlecomposition` object was not found.");
|
||||
if (error)
|
||||
*error = g_error_new (GST_CORE_ERROR, GST_CORE_ERROR_MISSING_PLUGIN,
|
||||
"The `nle` plugin is missing.");
|
||||
|
||||
goto failed;
|
||||
}
|
||||
gst_object_unref (nlecomposition_factory);
|
||||
|
||||
|
||||
|
||||
/* register clip classes with the system */
|
||||
|
||||
g_type_class_ref (GES_TYPE_TEST_CLIP);
|
||||
|
|
Loading…
Reference in a new issue