754 lines
17 KiB
Smali
754 lines
17 KiB
Smali
.class Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;
|
|
.super Landroid/os/HandlerThread;
|
|
.source "DummySurface.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;
|
|
.implements Landroid/os/Handler$Callback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/exoplayer2/video/DummySurface;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "DummySurfaceThread"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final MSG_INIT:I = 0x1
|
|
|
|
.field private static final MSG_RELEASE:I = 0x3
|
|
|
|
.field private static final MSG_UPDATE_TEXTURE:I = 0x2
|
|
|
|
|
|
# instance fields
|
|
.field private handler:Landroid/os/Handler;
|
|
|
|
.field private initError:Ljava/lang/Error;
|
|
|
|
.field private initException:Ljava/lang/RuntimeException;
|
|
|
|
.field private surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
.field private surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
.field private final textureIdHolder:[I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const-string v0, "dummySurface"
|
|
|
|
.line 1
|
|
invoke-direct {p0, v0}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->textureIdHolder:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private initInternal(Z)V
|
|
.locals 13
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/opengl/EGL14;->eglGetDisplay(I)Landroid/opengl/EGLDisplay;
|
|
|
|
move-result-object v9
|
|
|
|
const/4 v10, 0x1
|
|
|
|
if-eqz v9, :cond_0
|
|
|
|
move v1, v10
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const-string v2, "eglGetDisplay failed"
|
|
|
|
.line 2
|
|
invoke-static {v1, v2}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [I
|
|
|
|
.line 3
|
|
invoke-static {v9, v1, v0, v1, v10}, Landroid/opengl/EGL14;->eglInitialize(Landroid/opengl/EGLDisplay;[II[II)Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "eglInitialize failed"
|
|
|
|
.line 4
|
|
invoke-static {v1, v2}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
const/16 v1, 0x11
|
|
|
|
new-array v2, v1, [I
|
|
|
|
.line 5
|
|
fill-array-data v2, :array_0
|
|
|
|
new-array v11, v10, [Landroid/opengl/EGLConfig;
|
|
|
|
new-array v12, v10, [I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v1, v9
|
|
|
|
move-object v4, v11
|
|
|
|
move-object v7, v12
|
|
|
|
.line 6
|
|
invoke-static/range {v1 .. v8}, Landroid/opengl/EGL14;->eglChooseConfig(Landroid/opengl/EGLDisplay;[II[Landroid/opengl/EGLConfig;II[II)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 7
|
|
aget v1, v12, v0
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
aget-object v1, v11, v0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move v1, v10
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v1, v0
|
|
|
|
:goto_1
|
|
const-string v2, "eglChooseConfig failed"
|
|
|
|
invoke-static {v1, v2}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
.line 8
|
|
aget-object v1, v11, v0
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
new-array v3, v2, [I
|
|
|
|
.line 9
|
|
fill-array-data v3, :array_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v3, 0x3
|
|
|
|
new-array v3, v3, [I
|
|
|
|
.line 10
|
|
fill-array-data v3, :array_2
|
|
|
|
.line 11
|
|
:goto_2
|
|
sget-object v4, Landroid/opengl/EGL14;->EGL_NO_CONTEXT:Landroid/opengl/EGLContext;
|
|
|
|
invoke-static {v9, v1, v4, v3, v0}, Landroid/opengl/EGL14;->eglCreateContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;[II)Landroid/opengl/EGLContext;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
move v4, v10
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move v4, v0
|
|
|
|
:goto_3
|
|
const-string v5, "eglCreateContext failed"
|
|
|
|
.line 12
|
|
invoke-static {v4, v5}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
const/4 v2, 0x7
|
|
|
|
new-array v2, v2, [I
|
|
|
|
.line 13
|
|
fill-array-data v2, :array_3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
new-array v2, v2, [I
|
|
|
|
.line 14
|
|
fill-array-data v2, :array_4
|
|
|
|
.line 15
|
|
:goto_4
|
|
invoke-static {v9, v1, v2, v0}, Landroid/opengl/EGL14;->eglCreatePbufferSurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;[II)Landroid/opengl/EGLSurface;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
move v2, v10
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move v2, v0
|
|
|
|
:goto_5
|
|
const-string v4, "eglCreatePbufferSurface failed"
|
|
|
|
.line 16
|
|
invoke-static {v2, v4}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
.line 17
|
|
invoke-static {v9, v1, v1, v3}, Landroid/opengl/EGL14;->eglMakeCurrent(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "eglMakeCurrent failed"
|
|
|
|
.line 18
|
|
invoke-static {v1, v2}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
.line 19
|
|
iget-object v1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->textureIdHolder:[I
|
|
|
|
invoke-static {v10, v1, v0}, Landroid/opengl/GLES20;->glGenTextures(I[II)V
|
|
|
|
.line 20
|
|
new-instance v1, Landroid/graphics/SurfaceTexture;
|
|
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->textureIdHolder:[I
|
|
|
|
aget v0, v2, v0
|
|
|
|
invoke-direct {v1, v0}, Landroid/graphics/SurfaceTexture;-><init>(I)V
|
|
|
|
iput-object v1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
.line 21
|
|
invoke-virtual {v1, p0}, Landroid/graphics/SurfaceTexture;->setOnFrameAvailableListener(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V
|
|
|
|
.line 22
|
|
new-instance v0, Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
iget-object v1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v0, p0, v1, p1, v2}, Lcom/google/android/exoplayer2/video/DummySurface;-><init>(Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;Landroid/graphics/SurfaceTexture;ZLcom/google/android/exoplayer2/video/DummySurface$1;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x3040
|
|
0x4
|
|
0x3024
|
|
0x8
|
|
0x3023
|
|
0x8
|
|
0x3022
|
|
0x8
|
|
0x3021
|
|
0x8
|
|
0x3025
|
|
0x0
|
|
0x3027
|
|
0x3038
|
|
0x3033
|
|
0x4
|
|
0x3038
|
|
.end array-data
|
|
|
|
:array_1
|
|
.array-data 4
|
|
0x3098
|
|
0x2
|
|
0x32c0
|
|
0x1
|
|
0x3038
|
|
.end array-data
|
|
|
|
:array_2
|
|
.array-data 4
|
|
0x3098
|
|
0x2
|
|
0x3038
|
|
.end array-data
|
|
|
|
:array_3
|
|
.array-data 4
|
|
0x3057
|
|
0x1
|
|
0x3056
|
|
0x1
|
|
0x32c0
|
|
0x1
|
|
0x3038
|
|
.end array-data
|
|
|
|
:array_4
|
|
.array-data 4
|
|
0x3057
|
|
0x1
|
|
0x3056
|
|
0x1
|
|
0x3038
|
|
.end array-data
|
|
.end method
|
|
|
|
.method private releaseInternal()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v3, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/SurfaceTexture;->release()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 2
|
|
iput-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
.line 3
|
|
iput-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
.line 4
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->textureIdHolder:[I
|
|
|
|
invoke-static {v1, v2, v0}, Landroid/opengl/GLES20;->glDeleteTextures(I[II)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v3
|
|
|
|
.line 5
|
|
iput-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
.line 6
|
|
iput-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
.line 7
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->textureIdHolder:[I
|
|
|
|
invoke-static {v1, v2, v0}, Landroid/opengl/GLES20;->glDeleteTextures(I[II)V
|
|
|
|
throw v3
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p1, Landroid/os/Message;->what:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 p1, 0x2
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-direct {p0}, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->releaseInternal()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 3
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/os/HandlerThread;->quit()Z
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_1
|
|
const-string v0, "DummySurface"
|
|
|
|
const-string v2, "Failed to release dummy surface"
|
|
|
|
.line 4
|
|
invoke-static {v0, v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
return v1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/os/HandlerThread;->quit()Z
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surfaceTexture:Landroid/graphics/SurfaceTexture;
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
|
|
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_2
|
|
:try_start_2
|
|
iget p1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
move p1, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
:goto_2
|
|
invoke-direct {p0, p1}, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initInternal(Z)V
|
|
:try_end_2
|
|
.catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/Error; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_3
|
|
|
|
.line 8
|
|
monitor-enter p0
|
|
|
|
.line 9
|
|
:try_start_3
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
|
|
|
|
.line 10
|
|
monitor-exit p0
|
|
|
|
goto :goto_3
|
|
|
|
:catchall_2
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
throw p1
|
|
|
|
:catchall_3
|
|
move-exception p1
|
|
|
|
goto :goto_4
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
:try_start_4
|
|
const-string v0, "DummySurface"
|
|
|
|
const-string v2, "Failed to initialize dummy surface"
|
|
|
|
.line 11
|
|
invoke-static {v0, v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 12
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initError:Ljava/lang/Error;
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_3
|
|
|
|
.line 13
|
|
monitor-enter p0
|
|
|
|
.line 14
|
|
:try_start_5
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
|
|
|
|
.line 15
|
|
monitor-exit p0
|
|
|
|
goto :goto_3
|
|
|
|
:catchall_4
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_4
|
|
|
|
throw p1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
:try_start_6
|
|
const-string v0, "DummySurface"
|
|
|
|
const-string v2, "Failed to initialize dummy surface"
|
|
|
|
.line 16
|
|
invoke-static {v0, v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 17
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initException:Ljava/lang/RuntimeException;
|
|
:try_end_6
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_3
|
|
|
|
.line 18
|
|
monitor-enter p0
|
|
|
|
.line 19
|
|
:try_start_7
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
|
|
|
|
.line 20
|
|
monitor-exit p0
|
|
|
|
:goto_3
|
|
return v1
|
|
|
|
:catchall_5
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
:try_end_7
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_5
|
|
|
|
throw p1
|
|
|
|
.line 21
|
|
:goto_4
|
|
monitor-enter p0
|
|
|
|
.line 22
|
|
:try_start_8
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
|
|
|
|
.line 23
|
|
monitor-exit p0
|
|
:try_end_8
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_6
|
|
|
|
throw p1
|
|
|
|
:catchall_6
|
|
move-exception p1
|
|
|
|
:try_start_9
|
|
monitor-exit p0
|
|
:try_end_9
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_6
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public init(Z)Lcom/google/android/exoplayer2/video/DummySurface;
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/os/HandlerThread;->start()V
|
|
|
|
.line 2
|
|
new-instance v0, Landroid/os/Handler;
|
|
|
|
invoke-virtual {p0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->handler:Landroid/os/Handler;
|
|
|
|
.line 3
|
|
monitor-enter p0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->handler:Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
move p1, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p1, v2
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V
|
|
|
|
.line 5
|
|
:goto_1
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initException:Ljava/lang/RuntimeException;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initError:Ljava/lang/Error;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
.line 6
|
|
:try_start_1
|
|
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move v2, v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 7
|
|
:cond_1
|
|
:try_start_2
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 8
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 9
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initException:Ljava/lang/RuntimeException;
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
.line 10
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->initError:Ljava/lang/Error;
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 11
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->surface:Lcom/google/android/exoplayer2/video/DummySurface;
|
|
|
|
return-object p1
|
|
|
|
.line 12
|
|
:cond_3
|
|
throw p1
|
|
|
|
.line 13
|
|
:cond_4
|
|
throw p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 14
|
|
:try_start_3
|
|
monitor-exit p0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onFrameAvailable(Landroid/graphics/SurfaceTexture;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->handler:Landroid/os/Handler;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public release()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface$DummySurfaceThread;->handler:Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z
|
|
|
|
return-void
|
|
.end method
|