ExoCacheConfig.smali

.class public Lcom/mmc/player/videocache/exocache/ExoCacheConfig;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final TAG:Ljava/lang/String; = "ExoCacheConfig"

.field private static volatile sInstance:Lcom/mmc/player/videocache/exocache/ExoCacheConfig;


# instance fields
.field private sourceFactory:Lcom/google/android/exoplayer2/upstream/l$a;


# direct methods
.method private constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getInstance()Lcom/mmc/player/videocache/exocache/ExoCacheConfig;
    .registers 2

    .line 1
    sget-object v0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sInstance:Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    if-nez v0, :cond_17

    .line 2
    const-class v0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    monitor-enter v0

    .line 3
    :try_start_7
    sget-object v1, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sInstance:Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    if-nez v1, :cond_12

    .line 4
    new-instance v1, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    invoke-direct {v1}, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;-><init>()V

    sput-object v1, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sInstance:Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    .line 5
    :cond_12
    monitor-exit v0

    goto :goto_17

    :catchall_14
    move-exception v1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_7 .. :try_end_16} :catchall_14

    throw v1

    .line 6
    :cond_17
    :goto_17
    sget-object v0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sInstance:Lcom/mmc/player/videocache/exocache/ExoCacheConfig;

    return-object v0
.end method


# virtual methods
.method public createCacheDataSource()Lcom/google/android/exoplayer2/upstream/l;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sourceFactory:Lcom/google/android/exoplayer2/upstream/l$a;

    if-eqz v0, :cond_9

    .line 2
    invoke-interface {v0}, Lcom/google/android/exoplayer2/upstream/l$a;->a()Lcom/google/android/exoplayer2/upstream/l;

    move-result-object v0

    return-object v0

    :cond_9
    const/4 v0, 0x0

    return-object v0
.end method

.method public getDataSourceFactory()Lcom/google/android/exoplayer2/upstream/l$a;
    .registers 2

    iget-object v0, p0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sourceFactory:Lcom/google/android/exoplayer2/upstream/l$a;

    return-object v0
.end method

.method public setDataSourceFactory(Lcom/google/android/exoplayer2/upstream/l$a;)V
    .registers 2

    iput-object p1, p0, Lcom/mmc/player/videocache/exocache/ExoCacheConfig;->sourceFactory:Lcom/google/android/exoplayer2/upstream/l$a;

    return-void
.end method