Skip to content
  • Thiago Santos's avatar
    videodecoder: accept-caps should only require fields from the template · 49568005
    Thiago Santos authored
    With the new caps query results the caps returned might have extra fields
    that are not required by the decoder (framerate for image decoders) and it
    causes a regression making, for example, jpegdec reject caps that don't
    have framerates.
    
    The accept-caps implementation will do 2 checks:
    
    1) Do subset check with the template caps, making sure all the required
    fields that are present on the template are present on the received caps.
    2) Do a intersection check with the result of a caps query, making sure
    that downstream can accept the fields in the received caps.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741263
    49568005