mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1135170 - Pin MediaResource in OggReader::GetSeekRanges. r=mattwoodrow
All consumers of MediaCacheStream::GetCachedRanges do this except this one.
This commit is contained in:
parent
8e66b38e57
commit
edce4188ef
@ -1182,8 +1182,9 @@ int64_t OggReader::RangeEndTime(int64_t aStartOffset,
|
||||
nsresult OggReader::GetSeekRanges(nsTArray<SeekRange>& aRanges)
|
||||
{
|
||||
NS_ASSERTION(mDecoder->OnDecodeThread(), "Should be on decode thread.");
|
||||
AutoPinned<MediaResource> resource(mDecoder->GetResource());
|
||||
nsTArray<MediaByteRange> cached;
|
||||
nsresult res = mDecoder->GetResource()->GetCachedRanges(cached);
|
||||
nsresult res = resource->GetCachedRanges(cached);
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
|
||||
for (uint32_t index = 0; index < cached.Length(); index++) {
|
||||
|
Loading…
Reference in New Issue
Block a user