зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296531 - Rip out direct stream listeners from MediaRecorder. r=jesup
MozReview-Commit-ID: CUAR85XvdUI --HG-- extra : rebase_source : 77f3e6ef10ef3bc21a36032ee373f849184f33f6 extra : source : d02e3c80a7db8303f062704150a93dc977e5c9b5
This commit is contained in:
Родитель
22efa38de2
Коммит
56e3e766b1
|
@ -777,15 +777,6 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
// Try to use direct listeners if possible
|
||||
if (domStream && domStream->GetInputStream()) {
|
||||
mInputStream = domStream->GetInputStream()->AsSourceStream();
|
||||
if (mInputStream) {
|
||||
mInputStream->AddDirectListener(mEncoder.get());
|
||||
mEncoder->SetDirectConnect(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Create a thread to read encode media data from MediaEncoder.
|
||||
if (!mReadThread) {
|
||||
nsresult rv = NS_NewNamedThread("Media_Encoder", getter_AddRefs(mReadThread));
|
||||
|
@ -845,13 +836,6 @@ private:
|
|||
}
|
||||
void CleanupStreams()
|
||||
{
|
||||
if (mInputStream) {
|
||||
if (mEncoder) {
|
||||
mInputStream->RemoveDirectListener(mEncoder.get());
|
||||
}
|
||||
mInputStream = nullptr;
|
||||
}
|
||||
|
||||
if (mTrackUnionStream) {
|
||||
if (mEncoder) {
|
||||
nsTArray<RefPtr<mozilla::dom::VideoStreamTrack>> videoTracks;
|
||||
|
@ -930,7 +914,6 @@ private:
|
|||
// Receive track data from source and dispatch to Encoder.
|
||||
// Pause/ Resume controller.
|
||||
RefPtr<ProcessedMediaStream> mTrackUnionStream;
|
||||
RefPtr<SourceMediaStream> mInputStream;
|
||||
nsTArray<RefPtr<MediaInputPort>> mInputPorts;
|
||||
|
||||
// Stream currently recorded.
|
||||
|
|
Загрузка…
Ссылка в новой задаче