summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-22 11:28:21 -0400
committerSebastian Dröge <sebastian@centricular.com>2016-09-30 13:37:14 +0300
commit0f1f334ee84f27f25b3bf50f9505b8cf97f1706d (patch)
treec3f9533cd6af43a9d1f8fd98ca9b07d27a9a80ce
parent562d740ec96dfae39a9e8c0f7e3685a14b9f5f2f (diff)
nlecomposition: Don't try to seek on an empty stack1.8
We would seek on a NULL pad then, which gives ugly assertions. https://bugzilla.gnome.org/show_bug.cgi?id=771843
-rw-r--r--plugins/nle/nlecomposition.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/nle/nlecomposition.c b/plugins/nle/nlecomposition.c
index cd1c04fe..d2cc07e3 100644
--- a/plugins/nle/nlecomposition.c
+++ b/plugins/nle/nlecomposition.c
@@ -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",