Don't set the priority of the decoder to 'high' on Android.
Doing so competes with the actual decoding that happens on a different thread. BUG=695438 Review-Url: https://codereview.webrtc.org/2745813003 Cr-Commit-Position: refs/heads/master@{#17184}
This commit is contained in:
parent
d118bacc9b
commit
ca37cf6691
@ -310,7 +310,14 @@ void VideoReceiveStream::Start() {
|
||||
call_stats_->RegisterStatsObserver(video_stream_decoder_.get());
|
||||
// Start the decode thread
|
||||
decode_thread_.Start();
|
||||
#if !defined(WEBRTC_ANDROID)
|
||||
// On android, the decoding happens on a different thread and frames
|
||||
// are delivered on that thread (that in itself needs to be fixed).
|
||||
// In any event, the actual decoding work is higher priority than the
|
||||
// |decode_thread_| on Android, so we only raise the deocode priority on
|
||||
// platforms other than Android.
|
||||
decode_thread_.SetPriority(rtc::kHighestPriority);
|
||||
#endif
|
||||
rtp_stream_receiver_.StartReceive();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user