Index: talk/app/webrtc/peerconnection.h |
diff --git a/talk/app/webrtc/peerconnection.h b/talk/app/webrtc/peerconnection.h |
index 2d388ae9f913912990af0541dd8eae67008da745..53275c9daeccaeda5f771c32266b8e05efe35b52 100644 |
--- a/talk/app/webrtc/peerconnection.h |
+++ b/talk/app/webrtc/peerconnection.h |
@@ -236,6 +236,10 @@ class PeerConnection : public PeerConnectionInterface, |
const MediaConstraintsInterface* constraints, |
cricket::MediaSessionOptions* session_options); |
+ // Remove all local and remote tracks of type |media_type|. |
+ // Called when a media type is rejected (m-line set to port 0). |
+ void RemoveTracks(cricket::MediaType media_type); |
+ |
// Makes sure a MediaStream Track is created for each StreamParam in |
// |streams|. |media_type| is the type of the |streams| and can be either |
// audio or video. |