mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +00:00
v4l2src: Use GstBaseSrc::block-size as fallback size
This commit is contained in:
parent
74d7521a7c
commit
e9a30e454a
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ gst_v4l2src_get_read (GstV4l2Src * v4l2src, GstBuffer ** buf)
|
||||||
/* In case the size per frame is unknown assume it's a streaming format (e.g.
|
/* In case the size per frame is unknown assume it's a streaming format (e.g.
|
||||||
* mpegts) and grab a reasonable default size instead */
|
* mpegts) and grab a reasonable default size instead */
|
||||||
if (buffersize == 0)
|
if (buffersize == 0)
|
||||||
buffersize = 8192;
|
buffersize = GST_BASE_SRC (v4l2src)->blocksize;
|
||||||
|
|
||||||
*buf = gst_buffer_new_and_alloc (buffersize);
|
*buf = gst_buffer_new_and_alloc (buffersize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue