MediaCodecVideoDecoder$1.smali
.class Lorg/webrtc/ali/MediaCodecVideoDecoder$1;
.super Ljava/lang/Object;
.source "MediaCodecVideoDecoder.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lorg/webrtc/ali/MediaCodecVideoDecoder;->release()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lorg/webrtc/ali/MediaCodecVideoDecoder;
.field final synthetic val$releaseDone:Ljava/util/concurrent/CountDownLatch;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lorg/webrtc/ali/MediaCodecVideoDecoder;Ljava/util/concurrent/CountDownLatch;)V
.registers 3
.param p1, "this$0" # Lorg/webrtc/ali/MediaCodecVideoDecoder;
.line 374
iput-object p1, p0, Lorg/webrtc/ali/MediaCodecVideoDecoder$1;->this$0:Lorg/webrtc/ali/MediaCodecVideoDecoder;
iput-object p2, p0, Lorg/webrtc/ali/MediaCodecVideoDecoder$1;->val$releaseDone:Ljava/util/concurrent/CountDownLatch;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 4
.line 378
const-string v0, "MediaCodecVideoDecoder"
:try_start_2
const-string v1, "Java releaseDecoder on release thread"
invoke-static {v0, v1}, Lorg/webrtc/ali/Logging;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 379
iget-object v1, p0, Lorg/webrtc/ali/MediaCodecVideoDecoder$1;->this$0:Lorg/webrtc/ali/MediaCodecVideoDecoder;
# getter for: Lorg/webrtc/ali/MediaCodecVideoDecoder;->mediaCodec:Landroid/media/MediaCodec;
invoke-static {v1}, Lorg/webrtc/ali/MediaCodecVideoDecoder;->access$000(Lorg/webrtc/ali/MediaCodecVideoDecoder;)Landroid/media/MediaCodec;
move-result-object v1
invoke-virtual {v1}, Landroid/media/MediaCodec;->stop()V
.line 380
iget-object v1, p0, Lorg/webrtc/ali/MediaCodecVideoDecoder$1;->this$0:Lorg/webrtc/ali/MediaCodecVideoDecoder;
# getter for: Lorg/webrtc/ali/MediaCodecVideoDecoder;->mediaCodec:Landroid/media/MediaCodec;
invoke-static {v1}, Lorg/webrtc/ali/MediaCodecVideoDecoder;->access$000(Lorg/webrtc/ali/MediaCodecVideoDecoder;)Landroid/media/MediaCodec;
move-result-object v1
invoke-virtual {v1}, Landroid/media/MediaCodec;->release()V
.line 381
const-string v1, "Java releaseDecoder on release thread done"
invoke-static {v0, v1}, Lorg/webrtc/ali/Logging;->d(Ljava/lang/String;Ljava/lang/String;)V
:try_end_1e
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_1e} :catch_1f
.line 384
goto :goto_25
.line 382
:catch_1f
move-exception v1
.line 383
.local v1, "e":Ljava/lang/Exception;
const-string v2, "Media decoder release failed"
invoke-static {v0, v2, v1}, Lorg/webrtc/ali/Logging;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
.line 385
.end local v1 # "e":Ljava/lang/Exception;
:goto_25
iget-object v0, p0, Lorg/webrtc/ali/MediaCodecVideoDecoder$1;->val$releaseDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
.line 386
return-void
.end method