diff options
Diffstat (limited to 'v4l2.c')
-rw-r--r-- | v4l2.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -510,6 +510,9 @@ int v4l2_alloc_buffers(struct v4l2_device *dev, enum v4l2_memory memtype, unsigned int i; int ret; + if (dev->nbufs != 0) + return -EBUSY; + /* Request the buffers from the driver. */ memset(&rb, 0, sizeof rb); rb.count = nbufs; |