From 6706e5b382f01c75ad2cc75d61649310e17218be 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 154b5a523c..e357eb035e 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) {