They are generally substantially smaller than regular fragments, and therefore
we end up pushing totally wrong bitrates downstream.
Fixes erratic buffering issues with DASH introduced by
66f5e874352016e29f555e3ce693b23474e476db
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1786>
/* Last chance to figure out a fallback nominal bitrate if neither baseclass
nor the HTTP Content-Length implementation worked. */
if (stream->fragment.bitrate == 0 && stream->fragment.duration != 0 &&
- stream->fragment_bytes_downloaded != 0) {
+ stream->fragment_bytes_downloaded != 0 && !stream->downloading_index &&
+ !stream->downloading_header) {
guint bitrate = MIN (G_MAXUINT,
gst_util_uint64_scale (stream->fragment_bytes_downloaded,
8 * GST_SECOND, stream->fragment.duration));