Skip to content
  • Jakub Adam's avatar
    Preserve video/x-raw over image/jpeg · 1c1e7fa0
    Jakub Adam authored and David King's avatar David King committed
    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