GNOME Bugzilla – Bug 684259
pad: event push failures cause errors, can't add a non-complete pipeline to a running tee
Last modified: 2013-07-12 19:05:14 UTC
Created attachment 224562 [details] example code If I have a running pipeline with a tee, in 0.10, I could add a queue and other elements and it would ignore the not-linked errors. In 1.0, GstPad will convert the non-1 returns to flow-not-negotiated or flow-error when pushing the sticky events before pushing a buffer. This will cause the tee to not ignore them.
Created attachment 224563 [details] [review] pad: Transform event pushing failures to not-linked Instead of transforming the event pushing failures to fatal errors, by making them into not-linked, the tee can correctly ignore them. This is one possible approach, another is to ignore all errors in the tee, not just not-linked. A third approach is to just not support this use-case anymore, in this case, I'll just add valve elements everywhere.
It seems that also now the "queue" element stops its thread if it gets a flush return from downstream, so that breaks my use-case anyway. I'll just connect the tee only once the downstream stuff is there.
Or maybe it should just ignore return values for all sticky events anyway? Wim?
You should ignore return values from event-push.
Can't reproduce this anymore, I assume it must have been fixed somehow.