-
gst_caps_simplify() doesn't preserve the original order of caps, so when called on the full set of caps, collected from all supported_formats, it may end up preferring image/jpeg caps even when video/x-raw with identical resolution and framerate is available. Simplify the caps coming from each of supported_formats separately, so that video/x-raw always comes first in the result GstCaps. We prefer raw camera output whenever possible in order to avoid decoding MJPEG.
1c1e7fa0