Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Unified Diff: talk/app/webrtc/rtpreceiver.h

Issue 1428243005: Fix for scenario where m-line is revived after being set to port 0. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/rtpreceiver.h
diff --git a/talk/app/webrtc/rtpreceiver.h b/talk/app/webrtc/rtpreceiver.h
index a93ccbcbfe89ca63ad650879f95453714709bb6d..f50b61e366e62336cdf2ca6a3809450369ed4422 100644
--- a/talk/app/webrtc/rtpreceiver.h
+++ b/talk/app/webrtc/rtpreceiver.h
@@ -61,13 +61,17 @@ class AudioRtpReceiver : public ObserverInterface,
return track_.get();
}
+ cricket::MediaType media_type() const override {
+ return cricket::MEDIA_TYPE_AUDIO;
+ }
+
std::string id() const override { return id_; }
void Stop() override;
- private:
- void Reconfigure();
+ void Reconfigure() override;
+ private:
std::string id_;
rtc::scoped_refptr<AudioTrackInterface> track_;
uint32_t ssrc_;
@@ -88,10 +92,16 @@ class VideoRtpReceiver : public rtc::RefCountedObject<RtpReceiverInterface> {
return track_.get();
}
+ cricket::MediaType media_type() const override {
+ return cricket::MEDIA_TYPE_VIDEO;
+ }
+
std::string id() const override { return id_; }
void Stop() override;
+ void Reconfigure() override;
+
private:
std::string id_;
rtc::scoped_refptr<VideoTrackInterface> track_;

Powered by Google App Engine
This is Rietveld 408576698