Function name change.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4655 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
dfbf52baac
commit
d51bcffc1e
@ -511,7 +511,7 @@ bool ViECapturer::ViECaptureThreadFunction(void* obj) {
|
||||
bool ViECapturer::ViECaptureProcess() {
|
||||
if (capture_event_.Wait(kThreadWaitTimeMs) == kEventSignaled) {
|
||||
deliver_cs_->Enter();
|
||||
if (MaybeSwapCapturedToDeliverFrame()) {
|
||||
if (MaybeSwapCapturedAndDeliverFrame()) {
|
||||
DeliverI420Frame(&deliver_frame_);
|
||||
}
|
||||
deliver_cs_->Leave();
|
||||
@ -646,7 +646,7 @@ void ViECapturer::OnNoPictureAlarm(const int32_t id,
|
||||
observer_->NoPictureAlarm(id, vie_alarm);
|
||||
}
|
||||
|
||||
bool ViECapturer::MaybeSwapCapturedToDeliverFrame() {
|
||||
bool ViECapturer::MaybeSwapCapturedAndDeliverFrame() {
|
||||
CriticalSectionScoped cs(capture_cs_.get());
|
||||
if (captured_frame_.IsZeroSize())
|
||||
return false;
|
||||
|
@ -144,7 +144,7 @@ class ViECapturer
|
||||
void DeliverCodedFrame(VideoFrame* video_frame);
|
||||
|
||||
private:
|
||||
bool MaybeSwapCapturedToDeliverFrame();
|
||||
bool MaybeSwapCapturedAndDeliverFrame();
|
||||
|
||||
// Never take capture_cs_ before deliver_cs_!
|
||||
scoped_ptr<CriticalSectionWrapper> capture_cs_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user