mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1135902: Set stream id on fake media streams. r=drno
This commit is contained in:
parent
48813ee22a
commit
def936e25d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user