Return pending buffers to Java VideoCapturerAndroid if camera is stopping
BUG=4510 R=magjed@webrtc.org Review URL: https://webrtc-codereview.appspot.com/45009005 Cr-Commit-Position: refs/heads/master@{#8935}
This commit is contained in:
@ -176,6 +176,8 @@ void AndroidVideoCapturerJni::OnIncomingFrame_w(void* video_frame,
|
||||
DCHECK(thread_checker_.CalledOnValidThread());
|
||||
if (capturer_)
|
||||
capturer_->OnIncomingFrame(video_frame, length, rotation, time_stamp);
|
||||
else
|
||||
ReturnBuffer_w(time_stamp);
|
||||
}
|
||||
|
||||
JNIEnv* AndroidVideoCapturerJni::jni() { return AttachCurrentThreadIfNeeded(); }
|
||||
|
||||
Reference in New Issue
Block a user