Index: talk/app/webrtc/java/jni/androidmediadecoder_jni.cc |
diff --git a/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc b/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc |
index b92b2de8ff8c8e0f62a6121991e299c056a7ad1b..9952e26d2ecb5fd47227b4b2ad0cc0f7e6be8555 100644 |
--- a/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc |
+++ b/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc |
@@ -654,9 +654,9 @@ bool MediaCodecVideoDecoder::DeliverPendingOutputs( |
int32_t callback_status = WEBRTC_VIDEO_CODEC_OK; |
if (use_surface_) { |
native_handle_.SetTextureObject(surface_texture_, texture_id); |
- VideoFrame texture_image(&native_handle_, width, height, output_timestamp_, |
- 0, webrtc::kVideoRotation_0, |
- rtc::Callback0<void>()); |
+ VideoFrame texture_image(new rtc::RefCountedObject<JniNativeHandleBuffer>( |
+ &native_handle_, width, height), |
+ output_timestamp_, 0, webrtc::kVideoRotation_0); |
texture_image.set_ntp_time_ms(output_ntp_time_ms_); |
callback_status = callback_->Decoded(texture_image); |
} else { |