From: Hans Verkuil Date: Tue, 25 Feb 2014 12:42:45 +0000 (-0300) Subject: [media] vb2: fix streamoff handling if streamon wasn't called X-Git-Tag: v3.15-rc1~85^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f1a9a33a58eebcc5799d9a6b797e9e19cf8627f;p=pandora-kernel.git [media] vb2: fix streamoff handling if streamon wasn't called If you request buffers, then queue buffers and then call STREAMOFF those buffers are not returned to their dequeued state because streamoff will just return if q->streaming was 0. This means that afterwards you can never QBUF that same buffer again unless you do STREAMON, REQBUFS or close the filehandle first. It is clear that if you do STREAMOFF even if no STREAMON was called before, you still want to have all buffers returned to their proper dequeued state. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed