Revert "[media] s5p-mfc: set allow_zero_bytesused flag for vb2_queue_init"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 2 Jul 2015 08:57:15 +0000 (10:57 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Mar 2016 07:59:13 +0000 (16:59 +0900)
This reverts commit e6c9dec3e7d68c477768e2955c7f8ed78a09bfd6.

drivers/media/platform/s5p-mfc/s5p_mfc.c

index 6911a43b054db4f3587f091774951a441ccb330a..fa680cd9c6e9a16349afa817f02afb4732eafd3e 100644 (file)
@@ -856,13 +856,6 @@ static int s5p_mfc_open(struct file *file)
                ret = -ENOENT;
                goto err_queue_init;
        }
-       /* One way to indicate end-of-stream for MFC is to set the
-        * bytesused == 0. However by default videobuf2 handles bytesused
-        * equal to 0 as a special case and changes its value to the size
-        * of the buffer. Set the allow_zero_bytesused flag so that videobuf2
-        * will keep the value of bytesused intact.
-        */
-       q->allow_zero_bytesused = 1;
        q->mem_ops = &vb2_dma_contig_memops;
        q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
        ret = vb2_queue_init(q);