Bug 1301675 - Clarify why we don't need to do anything on DecoderCaptureTrackSource::Stop(). r=jib

MozReview-Commit-ID: H1zaO1FKWvK
This commit is contained in:
Andreas Pehrson
2016-09-16 11:10:17 +02:00
parent b028a0b40f
commit 10be33a1ac

View File

@@ -2363,9 +2363,10 @@ public:
void Stop() override
{
// XXX Fix in later patch.
NS_ERROR("We're reporting remote=true to not be stoppable. "
"Stop() should not be called.");
// We don't notify the source that a track was stopped since it will keep
// producing tracks until the element ends. The decoder also needs the
// tracks it created to be live at the source since the decoder's clock is
// based on MediaStreams during capture.
}
void NotifyDecoderPrincipalChanged() override