Skip to content
  • Tim-Philipp Müller's avatar
    baseparse: fix draining with less data than min frame size available · 2e278aeb
    Tim-Philipp Müller authored and Sebastian Dröge's avatar Sebastian Dröge committed
    baseparse would pass whatever is left in the adapter to the
    subclass when draining, even if it's less than the minimum
    frame size required. This is bogus, baseparse should just
    discard that data then. The original intention of that code
    seems to have been that if we have more data available than
    the minimum required we should pass all of the data available
    and not just the minimum required, which does make sense, so
    we'll continue to do that in the case that more data is available.
    
    Fixes assertions in rawvideoparse on EOS after not-negotiated with
    fakesrc sizetype=random ! queue ! rawvideoparse format=rgb ! appsink caps=video/x-raw,format=I420
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773666
    2e278aeb