From 05adcb31e566ec035bba9aaf1f362a9719bb4e78 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 May 2017 12:57:28 +0200 Subject: [PATCH] v4l2: no range for fixed framerates Print fixed values correctly --- spa/plugins/v4l2/v4l2-utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spa/plugins/v4l2/v4l2-utils.c b/spa/plugins/v4l2/v4l2-utils.c index 254bd2d6e..7ab0fd6bd 100644 --- a/spa/plugins/v4l2/v4l2-utils.c +++ b/spa/plugins/v4l2/v4l2-utils.c @@ -792,6 +792,9 @@ have_framerate: } n_fractions++; } + if (n_fractions <= 1) { + prop->body.flags &= ~(SPA_POD_PROP_RANGE_MASK | SPA_POD_PROP_FLAG_UNSET); + } spa_pod_builder_pop (&b, &f[1]); spa_pod_builder_pop (&b, &f[0]);