summaryrefslogtreecommitdiff
path: root/video_receive_stream.h
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-03 10:13:04 +0000
committerpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-03 10:13:04 +0000
commit4b50db1f8ce21cc7faf4f7c80b6a492dffb2a1d5 (patch)
tree210078ccbc0623366abc6d5ef6aa0d933b6a8c31 /video_receive_stream.h
parentcc19dce72f11c225416b88392ef017d760700160 (diff)
downloadwebrtc-4b50db1f8ce21cc7faf4f7c80b6a492dffb2a1d5.tar.gz
Set local SSRC for VideoReceiveStream.
As a bonus, also removes GenerateRandomSsrc, which only worked on sender configs. There's no point to generate random SSRCs in tests. BUG=2691 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4689004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5201 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'video_receive_stream.h')
-rw-r--r--video_receive_stream.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/video_receive_stream.h b/video_receive_stream.h
index 8b4f6434..e5a68298 100644
--- a/video_receive_stream.h
+++ b/video_receive_stream.h
@@ -105,11 +105,15 @@ class VideoReceiveStream {
// Receive-stream specific RTP settings.
struct Rtp {
- Rtp() : ssrc(0), rtcp_mode(newapi::kRtcpReducedSize) {}
-
- // TODO(mflodman) Do we require a set ssrc? What happens if the ssrc
- // changes?
- uint32_t ssrc;
+ Rtp()
+ : remote_ssrc(0),
+ local_ssrc(0),
+ rtcp_mode(newapi::kRtcpReducedSize) {}
+
+ // Synchronization source (stream identifier) to be received.
+ uint32_t remote_ssrc;
+ // Sender SSRC used for sending RTCP (such as receiver reports).
+ uint32_t local_ssrc;
// See RtcpMode for description.
newapi::RtcpMode rtcp_mode;