From acfc9ae216d2192794986ddb1c61232b048388f6 Mon Sep 17 00:00:00 2001 From: Diogo Goncalves Date: Thu, 28 Apr 2022 16:02:26 +0100 Subject: [PATCH] avfvideosrc: fix wrong framerate selected for caps This fix solves an issue where a format that doesn't support the requested framerate would be selected. It ensures that we use the first format and framerate pair that supports the requested caps. Part-of: --- subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m b/subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m index 154b5a5..e357eb0 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m +++ b/subprojects/gst-plugins-bad/sys/applemedia/avfvideosrc.m @@ -671,6 +671,10 @@ checked: break; } } + + if (found_framerate) { + break; + } } } if (!found_format) { -- 2.7.4