mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1183573: P1. Properly shutdown demuxers. r=gerald
This commit is contained in:
parent
d560547398
commit
51fee7c5fb
@ -109,6 +109,7 @@ TrackBuffersManager::TrackBuffersManager(dom::SourceBuffer* aParent, MediaSource
|
||||
|
||||
TrackBuffersManager::~TrackBuffersManager()
|
||||
{
|
||||
ShutdownDemuxers();
|
||||
}
|
||||
|
||||
bool
|
||||
@ -733,7 +734,7 @@ TrackBuffersManager::ScheduleSegmentParserLoop()
|
||||
}
|
||||
|
||||
void
|
||||
TrackBuffersManager::CreateDemuxerforMIMEType()
|
||||
TrackBuffersManager::ShutdownDemuxers()
|
||||
{
|
||||
if (mVideoTracks.mDemuxer) {
|
||||
mVideoTracks.mDemuxer->BreakCycles();
|
||||
@ -744,6 +745,13 @@ TrackBuffersManager::CreateDemuxerforMIMEType()
|
||||
mAudioTracks.mDemuxer = nullptr;
|
||||
}
|
||||
mInputDemuxer = nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
TrackBuffersManager::CreateDemuxerforMIMEType()
|
||||
{
|
||||
ShutdownDemuxers();
|
||||
|
||||
if (mType.LowerCaseEqualsLiteral("video/webm") || mType.LowerCaseEqualsLiteral("audio/webm")) {
|
||||
NS_WARNING("Waiting on WebMDemuxer");
|
||||
// mInputDemuxer = new WebMDemuxer(mCurrentInputBuffer);
|
||||
|
@ -102,6 +102,7 @@ private:
|
||||
void SegmentParserLoop();
|
||||
void AppendIncomingBuffers();
|
||||
void InitializationSegmentReceived();
|
||||
void ShutdownDemuxers();
|
||||
void CreateDemuxerforMIMEType();
|
||||
void NeedMoreData();
|
||||
void RejectAppend(nsresult aRejectValue, const char* aName);
|
||||
|
Loading…
Reference in New Issue
Block a user