mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1183653: MediaFormatReader: returns error if no tracks are usable. r=cpearce
This commit is contained in:
parent
cad4e5430e
commit
205699a9ff
@ -358,6 +358,11 @@ MediaFormatReader::OnDemuxerInitDone(nsresult)
|
||||
NS_WARNING("Unable to clone current MediaDataDemuxer");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!videoActive && !audioActive) {
|
||||
mMetadataPromise.Reject(ReadMetadataFailureReason::METADATA_ERROR, __func__);
|
||||
return;
|
||||
}
|
||||
if (videoActive) {
|
||||
mVideoTrackDemuxer =
|
||||
mMainThreadDemuxer->GetTrackDemuxer(TrackInfo::kVideoTrack, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user