summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@stericsson.com>2013-02-15 16:21:21 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2013-02-15 16:26:59 +0100
commit1ed4239ea7ce2f5eda5a8f7029a718f42f06c155 (patch)
tree2001964656647fea2a10f19135224a110934529e
parentc3f289e497b56de767bb9ec35feeee6ebfd040d3 (diff)
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.
-rw-r--r--sys/v4l2/gstv4l2bufferpool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
index f6fabbb13..a6f8e1161 100644
--- a/sys/v4l2/gstv4l2bufferpool.c
+++ b/sys/v4l2/gstv4l2bufferpool.c
@@ -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",