Commit 0f1f334e authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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
parent 562d740e
......@@ -1482,6 +1482,13 @@ _seek_current_stack (NleComposition * comp, GstEvent * 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) {
priv->flush_seqnum = gst_event_get_seqnum (event);
GST_INFO_OBJECT (comp, "sending flushes downstream with seqnum %d",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment