hverkuil:  hi, what should be the behaviour of closing a file escriptor while streaming on it?
I just tried it with vicodec and vimc, and in both cases it succeeded but it seems that the allocated buffers for the streaming are not freed
an automatic STREAMOFF and REQBUFS(0) (i.e. streaming stops and all buffers are released
should happen automatically if you call vb2_fop_release
ok, thanks, I see the buffers are indeed released
hverkuil: just wondering if vim2m driver has a bug - shouldn't be ctx->aborting cleared in vim2m_start_streaming()?
if you do start streaming, stop streaming and start streaming sequence, and ctx->translen is > 1, then it would not work properly, right?
jernej: it looks like it, yes.
Ah, this never gets tested since normally you close the fd between tests.
And v4l2-compliance closes and reopens the fd as well, so never notices this.
I can send a fix later, if you want
jernej: yes please.