Skip to content
  • Víctor Manuel Jáquez Leal's avatar
    vaapidecode: reset decoder hard when set_format() · d674d069
    Víctor Manuel Jáquez Leal authored
    set_format() is called by upstream when the stream capabilites has changed.
    Before, if the new stream is compatible with the old one the VA decoder was
    not destroyed. Nonetheless, with this behavoir, the VA decoder ignores
    when the upstreamer parsers gets more details of the stream, such as the
    framerate. Hence, when the src caps are negotiates, the further sink caps
    updates are ignored.
    
    This patch forces the VA decoder destroying and recreation when set_format()
    is called.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770921
    d674d069