Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gst-editing-services
Commits
e71e1cc9
Commit
e71e1cc9
authored
Aug 03, 2018
by
Thibault Saunier
🌵
Browse files
ges: Check that nle is avalaible when initializing
parent
efa220a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ges/ges.c
View file @
e71e1cc9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment