Allow VideoSender to be constructed on one thread but initialized and used for doing registrations, on another.
R=andresp@webrtc.org Review URL: https://webrtc-codereview.appspot.com/42219004 Cr-Commit-Position: refs/heads/master@{#8613} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8613 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7008f2227c
commit
658d2015f3
@ -77,6 +77,10 @@ VideoSender::VideoSender(Clock* clock,
|
|||||||
current_codec_(),
|
current_codec_(),
|
||||||
qm_settings_callback_(NULL),
|
qm_settings_callback_(NULL),
|
||||||
protection_callback_(NULL) {
|
protection_callback_(NULL) {
|
||||||
|
// Allow VideoSender to be created on one thread but used on another, post
|
||||||
|
// construction. This is currently how this class is being used by at least
|
||||||
|
// one external project (diffractor).
|
||||||
|
main_thread_.DetachFromThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoSender::~VideoSender() {
|
VideoSender::~VideoSender() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user