identity: error-after and eos-after do not push the Nth buffer
When error-after or oes-after is used, the Nth buffer is never pushed. So basically it makes this property error at the specified count buffer, dropping the buffer. Maybe it's on purpose, but it's a bit counter intuitive to used, as an example:
gst-launch-1.0 videotestsrc ! jpegenc ! identity eos-after=1 ! filesink location=test.jpeg
I was expecting this pipeline to produce a jpeg, but it leaves the file empty. I'm tempted to just change the logic in that element. Any opinion ?