Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public void onError(MediaCodec codec, MediaCodec.CodecException e) {
@Override
public void onInputBufferAvailable(MediaCodec codec, int index) {
synchronized (mNativeBridgeLock) {
if (mNativeMediaCodecBridge == 0 || mIsFlushing) {
if (mNativeMediaCodecBridge == 0) {
return;
}
MediaCodecBridgeJni.get()
Expand Down Expand Up @@ -346,7 +346,7 @@ public void onOutputBufferAvailable(
@Override
public void onOutputFormatChanged(MediaCodec codec, MediaFormat format) {
synchronized (mNativeBridgeLock) {
if (mNativeMediaCodecBridge == 0 || mIsFlushing) {
if (mNativeMediaCodecBridge == 0) {
return;
}
mActiveFormat = new MediaFormatWrapper(format);
Expand All @@ -370,7 +370,7 @@ public void onOutputFormatChanged(MediaCodec codec, MediaFormat format) {
@Override
public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) {
synchronized (mNativeBridgeLock) {
if (mNativeMediaCodecBridge == 0 || mIsFlushing) {
if (mNativeMediaCodecBridge == 0) {
return;
}
MediaCodecBridgeJni.get()
Expand Down Expand Up @@ -1082,7 +1082,7 @@ private void setupTunnelingPlayback() {
@Override
public void onFirstTunnelFrameReady(MediaCodec codec) {
synchronized (mNativeBridgeLock) {
if (mNativeMediaCodecBridge == 0 || mIsFlushing) {
if (mNativeMediaCodecBridge == 0) {
return;
}
MediaCodecBridgeJni.get()
Expand Down
Loading