Backed out changeset c60c97633ac8 (bug 1320994)

This commit is contained in:
Sebastian Hengst 2017-05-03 13:14:09 +02:00
Родитель 23ee24c08b
Коммит 7211725673
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1277,7 +1277,7 @@ public:
source->SetPullEnabled(true); source->SetPullEnabled(true);
source->AdvanceKnownTracksTime(STREAM_TIME_MAX); source->AdvanceKnownTracksTime(STREAM_TIME_MAX);
LOG(("started all sources")); MM_LOG(("started all sources"));
// Forward onTracksAvailableCallback to GetUserMediaNotificationEvent, // Forward onTracksAvailableCallback to GetUserMediaNotificationEvent,
// because onTracksAvailableCallback needs to be added to domStream // because onTracksAvailableCallback needs to be added to domStream
@ -3449,7 +3449,7 @@ SourceListener::Remove()
return; return;
} }
LOG(("SourceListener removed on purpose, mFinished = %d", (int) mFinished)); MM_LOG(("SourceListener removed on purpose, mFinished = %d", (int) mFinished));
mRemoved = true; // RemoveListener is async, avoid races mRemoved = true; // RemoveListener is async, avoid races
mWindowListener = nullptr; mWindowListener = nullptr;
@ -3662,7 +3662,7 @@ void
SourceListener::NotifyRemoved() SourceListener::NotifyRemoved()
{ {
MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(NS_IsMainThread());
LOG(("SourceListener removed, mFinished = %d", (int) mFinished)); MM_LOG(("SourceListener removed, mFinished = %d", (int) mFinished));
mRemoved = true; mRemoved = true;
if (!mFinished) { if (!mFinished) {

Просмотреть файл

@ -60,6 +60,9 @@ class GetUserMediaWindowListener;
class MediaManager; class MediaManager;
class SourceListener; class SourceListener;
extern LogModule* GetMediaManagerLog();
#define MM_LOG(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Debug, msg)
class MediaDevice : public nsIMediaDevice class MediaDevice : public nsIMediaDevice
{ {
public: public: