Skip to content
  • Nicolas Dufresne's avatar
    v4l2object: Always set format · 3dae65ed
    Nicolas Dufresne authored
    Right now we try to be clever by detecting if device format have
    changed or not, and skip setting format in this case. This is valid
    behaviour with V4L2, but it's also very error prone. The rational
    for not setting these all the time is for speed, though I can't
    measure any noticeable gain on any HW I own. Also, until recently,
    we where doing get/set on the format for each format we where
    probing, making it near to impossible that the format would match.
    This also fixes bug where we where skipping frame-rate setting if
    format didn't change.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740636
    3dae65ed