Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ size_t SourceBufferPrivateGStreamer::platformMaximumBufferSize() const
});

// If any track type size isn't specified, we consider that it has no limit and the values from the
// element have to be used. Otherwise, the track limits are accumulative. If everything is specified
// element have to be used. Otherwise, the track limits are accumulative. If at least video and audio is specified
// but there's no track (eg: because we're processing an init segment that we don't know yet which
// kind of track(s) is going to generate) we assume that the 3 kind of tracks might appear (audio,
// video, text) and use all the accumulated limits at once to make room for any possible outcome.
Expand Down Expand Up @@ -380,7 +380,7 @@ size_t SourceBufferPrivateGStreamer::platformMaximumBufferSize() const
if (hasText || m_tracks.empty()) {
if (maxBufferSizeText)
bufferSize += maxBufferSizeText;
else
else if (hasText)
break;
}
if (bufferSize)
Expand Down