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

Side by Side Diff: webrtc/video/video_receive_stream.h

Issue 2720963003: Avoid busy looping as the VideoReceiveStream is shut down. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 std::unique_ptr<video_coding::FrameObject> frame) override; 104 std::unique_ptr<video_coding::FrameObject> frame) override;
105 105
106 // Implements Syncable. 106 // Implements Syncable.
107 int id() const override; 107 int id() const override;
108 rtc::Optional<Syncable::Info> GetInfo() const override; 108 rtc::Optional<Syncable::Info> GetInfo() const override;
109 uint32_t GetPlayoutTimestamp() const override; 109 uint32_t GetPlayoutTimestamp() const override;
110 void SetMinimumPlayoutDelay(int delay_ms) override; 110 void SetMinimumPlayoutDelay(int delay_ms) override;
111 111
112 private: 112 private:
113 static bool DecodeThreadFunction(void* ptr); 113 static bool DecodeThreadFunction(void* ptr);
114 void Decode(); 114 bool Decode();
115 115
116 rtc::ThreadChecker worker_thread_checker_; 116 rtc::ThreadChecker worker_thread_checker_;
117 rtc::ThreadChecker module_process_thread_checker_; 117 rtc::ThreadChecker module_process_thread_checker_;
118 118
119 TransportAdapter transport_adapter_; 119 TransportAdapter transport_adapter_;
120 const VideoReceiveStream::Config config_; 120 const VideoReceiveStream::Config config_;
121 const int num_cpu_cores_; 121 const int num_cpu_cores_;
122 const bool protected_by_flexfec_; 122 const bool protected_by_flexfec_;
123 ProcessThread* const process_thread_; 123 ProcessThread* const process_thread_;
124 Clock* const clock_; 124 Clock* const clock_;
(...skipping 14 matching lines...) Expand all
139 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_); 139 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_);
140 140
141 // Members for the new jitter buffer experiment. 141 // Members for the new jitter buffer experiment.
142 std::unique_ptr<VCMJitterEstimator> jitter_estimator_; 142 std::unique_ptr<VCMJitterEstimator> jitter_estimator_;
143 std::unique_ptr<video_coding::FrameBuffer> frame_buffer_; 143 std::unique_ptr<video_coding::FrameBuffer> frame_buffer_;
144 }; 144 };
145 } // namespace internal 145 } // namespace internal
146 } // namespace webrtc 146 } // namespace webrtc
147 147
148 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 148 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698