Skip to content
  • Matthew Waters's avatar
    urisourcebin: limit the byte size of the queue based on the buffer-size · 8b69b689
    Matthew Waters authored and Edward Hervey's avatar Edward Hervey committed
    Use the bitrate advertised by queue2 to determine the limits to
    set across possibly multiple queue2/downloadbuffer elements.  e.g.
    with two queue2's and a max-bytes based on the ratio of the
    bitrate/cumulative_bitrate multiplied by the buffer_size set on urisourcebin.
    
    This allows finer grained control over the buffer used by all the queue
    elements inside urisourcebin.  Instead of a maximum of
    n_streams*buffer_size being used, only buffer_size will be used however
    we will fallback to n_streams*buffer_size if one of the queue2's does
    not have bitrate information.
    
    gstreamer/gst-plugins-base#60
    8b69b689