From: Diogo Goncalves Date: Thu, 28 Apr 2022 15:02:26 +0000 (+0100) Subject: avfvideosrc: fix wrong framerate selected for caps X-Git-Tag: 1.22.0~1640 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acfc9ae216d2192794986ddb1c61232b048388f6;p=platform%2Fupstream%2Fgstreamer.git 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: --- 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) {