| Index: Source/modules/mediastream/MediaStream.cpp
|
| diff --git a/Source/modules/mediastream/MediaStream.cpp b/Source/modules/mediastream/MediaStream.cpp
|
| index 0c423778660d3aede8590f5889d8611f57179f90..f66b41b3abddacb55020c1b67b337e17d59f662e 100644
|
| --- a/Source/modules/mediastream/MediaStream.cpp
|
| +++ b/Source/modules/mediastream/MediaStream.cpp
|
| @@ -181,21 +181,21 @@ void MediaStream::removeTrack(PassRefPtr<MediaStreamTrack> prpTrack, ExceptionSt
|
|
|
| RefPtr<MediaStreamTrack> track = prpTrack;
|
|
|
| - size_t pos = notFound;
|
| + size_t pos = kNotFound;
|
| switch (track->component()->source()->type()) {
|
| case MediaStreamSource::TypeAudio:
|
| pos = m_audioTracks.find(track);
|
| - if (pos != notFound)
|
| + if (pos != kNotFound)
|
| m_audioTracks.remove(pos);
|
| break;
|
| case MediaStreamSource::TypeVideo:
|
| pos = m_videoTracks.find(track);
|
| - if (pos != notFound)
|
| + if (pos != kNotFound)
|
| m_videoTracks.remove(pos);
|
| break;
|
| }
|
|
|
| - if (pos == notFound)
|
| + if (pos == kNotFound)
|
| return;
|
|
|
| m_descriptor->removeComponent(track->component());
|
| @@ -316,14 +316,14 @@ void MediaStream::removeRemoteTrack(MediaStreamComponent* component)
|
| break;
|
| }
|
|
|
| - size_t index = notFound;
|
| + size_t index = kNotFound;
|
| for (size_t i = 0; i < tracks->size(); ++i) {
|
| if ((*tracks)[i]->component() == component) {
|
| index = i;
|
| break;
|
| }
|
| }
|
| - if (index == notFound)
|
| + if (index == kNotFound)
|
| return;
|
|
|
| m_descriptor->removeComponent(component);
|
|
|