mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
nlecomposition: Don't try to seek on an empty stack
We would seek on a NULL pad then, which gives ugly assertions. https://bugzilla.gnome.org/show_bug.cgi?id=771843
This commit is contained in:
parent
7aa69d0ea0
commit
a1b923c78a
1 changed files with 7 additions and 0 deletions
|
@ -1491,6 +1491,13 @@ _seek_current_stack (NleComposition * comp, GstEvent * event,
|
||||||
|
|
||||||
GST_INFO_OBJECT (comp, "Seeking itself %" GST_PTR_FORMAT, event);
|
GST_INFO_OBJECT (comp, "Seeking itself %" GST_PTR_FORMAT, event);
|
||||||
|
|
||||||
|
if (!peer) {
|
||||||
|
GST_ERROR_OBJECT (comp, "Can't seek because no pad available - "
|
||||||
|
"no children in the composition ready to be used, the duration is 0, "
|
||||||
|
"or not committed yet");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (flush_downstream) {
|
if (flush_downstream) {
|
||||||
priv->flush_seqnum = gst_event_get_seqnum (event);
|
priv->flush_seqnum = gst_event_get_seqnum (event);
|
||||||
GST_INFO_OBJECT (comp, "sending flushes downstream with seqnum %d",
|
GST_INFO_OBJECT (comp, "sending flushes downstream with seqnum %d",
|
||||||
|
|
Loading…
Reference in a new issue