summaryrefslogtreecommitdiffstats
path: root/remoting/client/jni/jni_frame_consumer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/client/jni/jni_frame_consumer.cc')
-rw-r--r--remoting/client/jni/jni_frame_consumer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/remoting/client/jni/jni_frame_consumer.cc b/remoting/client/jni/jni_frame_consumer.cc
index ac1e7a6..9fb8f2f 100644
--- a/remoting/client/jni/jni_frame_consumer.cc
+++ b/remoting/client/jni/jni_frame_consumer.cc
@@ -48,7 +48,7 @@ void JniFrameConsumer::ApplyBuffer(const webrtc::DesktopSize& view_size,
const webrtc::DesktopRegion& region) {
DCHECK(jni_runtime_->display_task_runner()->BelongsToCurrentThread());
- if (!view_size_.equals(view_size)) {
+ if (!view_size_.equals(buffer->size())) {
// Drop the frame, since the data belongs to the previous generation,
// before SetSourceSize() called SetOutputSizeAndClip().
FreeBuffer(buffer);
@@ -83,7 +83,6 @@ void JniFrameConsumer::ApplyBuffer(const webrtc::DesktopSize& view_size,
void JniFrameConsumer::ReturnBuffer(webrtc::DesktopFrame* buffer) {
DCHECK(jni_runtime_->display_task_runner()->BelongsToCurrentThread());
- VLOG(0) << "Returning image buffer";
FreeBuffer(buffer);
}