Bug 1135902: Set stream id on fake media streams. r=drno

This commit is contained in:
Byron Campen [:bwc] 2015-02-23 15:19:17 -08:00
parent 48813ee22a
commit def936e25d

View File

@ -265,7 +265,13 @@ public:
explicit Fake_DOMMediaStream(Fake_MediaStream *stream = nullptr)
: mMediaStream(stream ? stream : new Fake_MediaStream())
, mVideoTrack(new Fake_MediaStreamTrack(true, this))
, mAudioTrack(new Fake_MediaStreamTrack(false, this)) {}
, mAudioTrack(new Fake_MediaStreamTrack(false, this))
{
static size_t counter = 0;
std::ostringstream os;
os << counter++;
mID = os.str();
}
NS_DECL_THREADSAFE_ISUPPORTS