mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
nle: Turn composition structural issue into ERROR on the bus
Those error are really critical and we are then enable to keep working. Just post an ERROR message on the bus and let the application deal with it. Reviewed-by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> Differential Revision: https://phabricator.freedesktop.org/D740
This commit is contained in:
parent
a81f4b2d8f
commit
38c4e415fd
1 changed files with 11 additions and 7 deletions
|
@ -2530,15 +2530,19 @@ _relink_children_recursively (NleComposition * comp,
|
|||
_relink_single_node (comp, child, toplevel_seek);
|
||||
|
||||
if (G_UNLIKELY (nbchildren < oper->num_sinks))
|
||||
GST_ERROR_OBJECT (comp,
|
||||
"%" GST_PTR_FORMAT
|
||||
" Not enough sinkpads to link all objects to the operation ! "
|
||||
"%d / %d", oper, oper->num_sinks, nbchildren);
|
||||
GST_ELEMENT_ERROR (comp, STREAM, FAILED,
|
||||
("The NleComposition structure is not valid"),
|
||||
("%" GST_PTR_FORMAT
|
||||
" Not enough sinkpads to link all objects to the operation ! "
|
||||
"%d / %d, current toplevel seek %" GST_PTR_FORMAT,
|
||||
oper, oper->num_sinks, nbchildren, toplevel_seek));
|
||||
|
||||
if (G_UNLIKELY (nbchildren == 0)) {
|
||||
GST_ERROR_OBJECT (comp,
|
||||
"Operation %" GST_PTR_FORMAT
|
||||
" has no child objects to be connected to !!!", oper);
|
||||
GST_ELEMENT_ERROR (comp, STREAM, FAILED,
|
||||
("The NleComposition structure is not valid"),
|
||||
("Operation %" GST_PTR_FORMAT
|
||||
" has no child objects to be connected to"
|
||||
"current toplevel seek: %" GST_PTR_FORMAT, oper, toplevel_seek));
|
||||
}
|
||||
/* Make sure we have enough sinkpads */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue