Index: Source/WebCore/platform/mediastream/MediaStreamDescriptor.h |
diff --git a/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h b/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h |
index 04d279e710b4a0e7e367019d917211958da31af6..73c7754741aeb29a398c7cab03f8907d9fe4c166 100644 |
--- a/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h |
+++ b/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h |
@@ -87,9 +87,21 @@ public: |
void addVideoComponent(PassRefPtr<MediaStreamComponent> component) { m_videoComponents.append(component); } |
void removeVideoComponent(MediaStreamComponent* component) |
{ |
- size_t pos = m_audioComponents.find(component); |
+ size_t pos = m_videoComponents.find(component); |
if (pos != notFound) |
- m_audioComponents.remove(pos); |
+ m_videoComponents.remove(pos); |
+ } |
+ |
+ void addRemoteTrack(MediaStreamComponent* component) |
+ { |
+ if (m_client) |
+ m_client->addRemoteTrack(component); |
+ } |
+ |
+ void removeRemoteTrack(MediaStreamComponent* component) |
+ { |
+ if (m_client) |
+ m_client->removeRemoteTrack(component); |
} |
bool ended() const { return m_ended; } |