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

Unified Diff: webrtc/video/stream_synchronization.h

Issue 2216533002: Move RTP for synchroninzation and rename classes, files and variables. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months 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: webrtc/video/stream_synchronization.h
diff --git a/webrtc/video/stream_synchronization.h b/webrtc/video/stream_synchronization.h
index cb7c110f44ba173ca59c5349ba2baacb4b006258..f231cfb1751aea062fe3935d14de7146b8c3fb24 100644
--- a/webrtc/video/stream_synchronization.h
+++ b/webrtc/video/stream_synchronization.h
@@ -18,8 +18,6 @@
namespace webrtc {
-struct ViESyncDelay;
-
class StreamSynchronization {
public:
struct Measurements {
@@ -30,7 +28,6 @@ class StreamSynchronization {
};
StreamSynchronization(uint32_t video_primary_ssrc, int audio_channel_id);
- ~StreamSynchronization();
bool ComputeDelays(int relative_delay_ms,
int current_audio_delay_ms,
@@ -48,7 +45,14 @@ class StreamSynchronization {
void SetTargetBufferingDelay(int target_delay_ms);
private:
- ViESyncDelay* channel_delay_;
+ struct SynchronizationDelays {
+ int extra_video_delay_ms = 0;
+ int last_video_delay_ms = 0;
+ int extra_audio_delay_ms = 0;
+ int last_audio_delay_ms = 0;
+ };
+
+ SynchronizationDelays channel_delay_;
const uint32_t video_primary_ssrc_;
const int audio_channel_id_;
int base_target_delay_ms_;

Powered by Google App Engine
This is Rietveld 408576698