Reset media codec thread when Encoder/Decoder object is created.

Review URL: https://codereview.webrtc.org/1389373004 .

Cr-Commit-Position: refs/heads/master@{#10230}
This commit is contained in:
Alex Glaznev 2015-10-08 16:21:50 -07:00
parent e7f6b565e4
commit 2b298de100
2 changed files with 6 additions and 2 deletions

View File

@ -96,7 +96,9 @@ public class MediaCodecVideoDecoder {
private TextureListener textureListener;
private Surface surface = null;
private MediaCodecVideoDecoder() { }
private MediaCodecVideoDecoder() {
mediaCodecThread = null;
}
// Helper struct for findVp8Decoder() below.
private static class DecoderProperties {

View File

@ -101,7 +101,9 @@ public class MediaCodecVideoEncoder {
// SPS and PPS NALs (Config frame) for H.264.
private ByteBuffer configData = null;
private MediaCodecVideoEncoder() {}
private MediaCodecVideoEncoder() {
mediaCodecThread = null;
}
// Helper struct for findHwEncoder() below.
private static class EncoderProperties {