Remove proxy layer from AndroidVideoTrackSource
This layer is not needed since the methods are thread safe, and the classes those method touches (VideoBroadcaster, cricket::VideoAdapter) are thread safe. Bug: webrtc:10247 Change-Id: Id4e309de4ac1b9669052aaa60d3bd1ed965aaa29 Reviewed-on: https://webrtc-review.googlesource.com/c/120801 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26543}
This commit is contained in:
committed by
Commit Bot
parent
69b761e52b
commit
167316b833
@ -12,7 +12,6 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "api/video_track_source_proxy.h"
|
||||
#include "rtc_base/logging.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -32,7 +31,6 @@ AndroidVideoTrackSource::AndroidVideoTrackSource(rtc::Thread* signaling_thread,
|
||||
is_screencast_(is_screencast),
|
||||
align_timestamps_(align_timestamps) {
|
||||
RTC_LOG(LS_INFO) << "AndroidVideoTrackSource ctor";
|
||||
camera_thread_checker_.DetachFromThread();
|
||||
}
|
||||
AndroidVideoTrackSource::~AndroidVideoTrackSource() = default;
|
||||
|
||||
@ -73,8 +71,6 @@ void AndroidVideoTrackSource::OnFrameCaptured(
|
||||
int64_t timestamp_ns,
|
||||
VideoRotation rotation,
|
||||
const JavaRef<jobject>& j_video_frame_buffer) {
|
||||
RTC_DCHECK(camera_thread_checker_.CalledOnValidThread());
|
||||
|
||||
int64_t camera_time_us = timestamp_ns / rtc::kNumNanosecsPerMicrosec;
|
||||
int64_t translated_camera_time_us =
|
||||
align_timestamps_ ? timestamp_aligner_.TranslateTimestamp(
|
||||
|
||||
Reference in New Issue
Block a user