Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: webrtc/sdk/android/src/jni/videoencoderwrapper.cc

Issue 3002783002: Android: Use injectable hardware video decoder in AppRTCMobile.
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/videoencoderwrapper.cc
diff --git a/webrtc/sdk/android/src/jni/videoencoderwrapper.cc b/webrtc/sdk/android/src/jni/videoencoderwrapper.cc
index 2b87d67c0bef80ff7fe1cbab25fb9a206e81522a..cf3bd90bc619dab18938737f5961594268496435 100644
--- a/webrtc/sdk/android/src/jni/videoencoderwrapper.cc
+++ b/webrtc/sdk/android/src/jni/videoencoderwrapper.cc
@@ -97,8 +97,6 @@ VideoEncoderWrapper::VideoEncoderWrapper(JNIEnv* jni, jobject j_encoder)
implementation_name_ = GetImplementationName(jni);
- encoder_queue_ = rtc::TaskQueue::Current();
-
initialized_ = false;
num_resets_ = 0;
@@ -116,6 +114,7 @@ int32_t VideoEncoderWrapper::InitEncode(const VideoCodec* codec_settings,
number_of_cores_ = number_of_cores;
codec_settings_ = *codec_settings;
num_resets_ = 0;
+ encoder_queue_ = rtc::TaskQueue::Current();
return InitEncodeInternal(jni);
}
@@ -167,6 +166,7 @@ int32_t VideoEncoderWrapper::Release() {
jobject ret = jni->CallObjectMethod(*encoder_, release_method_);
frame_extra_infos_.clear();
initialized_ = false;
+ encoder_queue_ = nullptr;
return HandleReturnCode(jni, ret);
}
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698