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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2331>
This commit is contained in:
Diogo Goncalves 2022-04-28 16:02:26 +01:00 committed by GStreamer Marge Bot
parent 5294a720f8
commit acfc9ae216

View file

@ -671,6 +671,10 @@ checked:
break;
}
}
if (found_framerate) {
break;
}
}
}
if (!found_format) {