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:
Per
2015-04-07 14:16:09 +02:00
parent 26679d6d90
commit 49a862ec4c

View File

@ -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(); }