Skip to content

v4l2src: Consider framerate during caps selection

Xavier Claessens requested to merge xclaesse/gstreamer:v4l2-caps-cmp into main

This simplifies the way it picks the closest caps to preference. Simply calculate a "distance" of caps A and B from the preference and put closest first.

This fix framerate that was not taken into account causing GStreamer to pick the 5 FPS caps by default with my webcam.

Merge request reports

Loading