/** * Get the duration of the media. */ public long getDuration() { synchronized (this) { if (mDuration != -1) return mDuration; if (isReleased()) return 0; } final long duration = nativeGetDuration(); synchronized (this) { mDuration = duration; return mDuration; } }
/** * Get the duration of the media. */ public long getDuration() { synchronized (this) { if (mDuration != -1) return mDuration; if (isReleased()) return 0; } final long duration = nativeGetDuration(); synchronized (this) { mDuration = duration; return mDuration; } }
/** * Get the duration of the media. */ public long getDuration() { synchronized (this) { if (mDuration != -1) return mDuration; if (isReleased()) return 0; } final long duration = nativeGetDuration(); synchronized (this) { mDuration = duration; return mDuration; } }
/** * Get the duration of the media. */ public long getDuration() { synchronized (this) { if (mDuration != -1) return mDuration; if (isReleased()) return 0; } final long duration = nativeGetDuration(); synchronized (this) { mDuration = duration; return mDuration; } }
/** * Get the duration of the media. */ public long getDuration() { synchronized (this) { if (mDuration != -1) return mDuration; if (isReleased()) return 0; } final long duration = nativeGetDuration(); synchronized (this) { mDuration = duration; return mDuration; } }