From 94b211e3b780bf9041b856a04d895a97ebf2960e Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Wed, 16 Aug 2023 23:13:01 +0200 Subject: [PATCH] GST prefer horizontal device input --- src/GstToolkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GstToolkit.h b/src/GstToolkit.h index aff7a93..e4a7273 100644 --- a/src/GstToolkit.h +++ b/src/GstToolkit.h @@ -55,7 +55,7 @@ struct PipelineConfig { int b_formatscore = b.format.find("R") != std::string::npos ? 2 : 1; float fps = static_cast(this->fps_numerator) / static_cast(this->fps_denominator); float b_fps = static_cast(b.fps_numerator) / static_cast(b.fps_denominator); - return ( fps * static_cast(this->height * formatscore) < b_fps * static_cast(b.height * b_formatscore)); + return ( fps * static_cast(this->width * formatscore) < b_fps * static_cast(b.width * b_formatscore)); } };