|
|
|
|
@ -197,7 +197,6 @@ public final class IjkMediaPlayer extends AbstractMediaPlayer { |
|
|
|
|
synchronized (IjkMediaPlayer.class) { |
|
|
|
|
if (!mIsNativeInitialized) { |
|
|
|
|
native_init(); |
|
|
|
|
native_setDot(dotOpen ? dotPort : 0); |
|
|
|
|
mIsNativeInitialized = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -1287,21 +1286,6 @@ public final class IjkMediaPlayer extends AbstractMediaPlayer { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static volatile int dotPort = 0; |
|
|
|
|
private static volatile boolean dotOpen = false; |
|
|
|
|
|
|
|
|
|
public static void setDotPort(boolean open, int p) { |
|
|
|
|
dotOpen = open; |
|
|
|
|
dotPort = p; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void toggleDotPort(boolean open) { |
|
|
|
|
dotOpen = open; |
|
|
|
|
if (mIsNativeInitialized) { |
|
|
|
|
native_setDot(dotOpen ? dotPort : 0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static native void native_profileBegin(String libName); |
|
|
|
|
public static native void native_profileEnd(); |
|
|
|
|
public static native void native_setLogLevel(int level); |
|
|
|
|
|