diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc index eb2404c174..be623cef56 100644 --- a/webrtc/video/video_receive_stream.cc +++ b/webrtc/video/video_receive_stream.cc @@ -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(); }