Give real instead of page-aligned buffer size to Gstreamer
authorJussi Saavalainen <jussi.saavalainen@ixonos.com>
Mon, 10 Sep 2012 12:34:51 +0000 (15:34 +0300)
committerJussi Saavalainen <jussi.saavalainen@ixonos.com>
Mon, 10 Sep 2012 12:34:51 +0000 (15:34 +0300)
commit9b012745805d997a3fe4cefa4425a515f8da1759
tree7ff0548aec1465b362bbc0043e519c2d138516c9
parentf9a4349bfcec9bc41c911a149020ecf2097516cb
Give real instead of page-aligned buffer size to Gstreamer

We handle all our buffers as page-aligned mmap'ed chunks, and so
their size is often larger than their contents. This breaks plugins
that insist on computing the buffer size from the caps we report.

Fix this by explicitly setting GST_BUFFER_SIZE for the final buffer
as the content size. This will break if we ever want to use this
camera source with devices that can do encoding on the v4l layer
or below.

Change-Id: I1b6d848162bfa9e06e729ebb7b6d986ba5a056ce
gst/mfldv4l2cam/v4l2camsrc_calls.c
packaging/mfldv4l2camsrc.changes