mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2: don't check stride for encoded formats
Don't try to check the stride for encoded formats. Some drivers output something != 0 and then we don't want to fail on that.
This commit is contained in:
parent
01c6512d5f
commit
59e583b59f
1 changed files with 4 additions and 2 deletions
|
@ -266,10 +266,12 @@ gst_v4l2_buffer_pool_set_config (GstBufferPool * bpool, GstStructure * config)
|
|||
gst_buffer_pool_config_has_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||
|
||||
if (!pool->add_videometa) {
|
||||
if (!pool->add_videometa &&
|
||||
GST_VIDEO_INFO_FORMAT (&obj->info) != GST_VIDEO_FORMAT_ENCODED) {
|
||||
gint stride;
|
||||
|
||||
/* we don't have video metadata, see if the strides are compatible */
|
||||
/* we don't have video metadata, and we are not dealing with raw video,
|
||||
* see if the strides are compatible */
|
||||
stride = GST_VIDEO_INFO_PLANE_STRIDE (&obj->info, 0);
|
||||
|
||||
GST_DEBUG_OBJECT (pool, "no videometadata, checking strides %d and %u",
|
||||
|
|
Loading…
Reference in a new issue