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

Unified Diff: webrtc/api/rtpreceiver.cc

Issue 2531333003: Create the Java Wrapper of RtpReceiverObserverInterface. (Closed)
Patch Set: Fix the failed test. Created 4 years 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
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/MediaStreamTrack.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtpreceiver.cc
diff --git a/webrtc/api/rtpreceiver.cc b/webrtc/api/rtpreceiver.cc
index 02e1650cb9ca642cdda9890ad21a9d4de499c60b..80a0256a02b8c6c802ec5bd73da0ce98a80f0879 100644
--- a/webrtc/api/rtpreceiver.cc
+++ b/webrtc/api/rtpreceiver.cc
@@ -114,7 +114,7 @@ void AudioRtpReceiver::Reconfigure() {
void AudioRtpReceiver::SetObserver(RtpReceiverObserverInterface* observer) {
observer_ = observer;
// Deliver any notifications the observer may have missed by being set late.
- if (received_first_packet_) {
+ if (received_first_packet_ && observer_) {
observer_->OnFirstPacketReceived(media_type());
}
}
@@ -212,7 +212,7 @@ void VideoRtpReceiver::Stop() {
void VideoRtpReceiver::SetObserver(RtpReceiverObserverInterface* observer) {
observer_ = observer;
// Deliver any notifications the observer may have missed by being set late.
- if (received_first_packet_) {
+ if (received_first_packet_ && observer_) {
observer_->OnFirstPacketReceived(media_type());
}
}
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/MediaStreamTrack.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698