/** * Get the state of the media. * * @see State */ public int getState() { synchronized (this) { if (mState != -1) return mState; if (isReleased()) return State.Error; } final int state = nativeGetState(); synchronized (this) { mState = state; return mState; } }
/** * Get the state of the media. * * @see State */ public int getState() { synchronized (this) { if (mState != -1) return mState; if (isReleased()) return State.Error; } final int state = nativeGetState(); synchronized (this) { mState = state; return mState; } }
/** * Get the state of the media. * * @see State */ public int getState() { synchronized (this) { if (mState != -1) return mState; if (isReleased()) return State.Error; } final int state = nativeGetState(); synchronized (this) { mState = state; return mState; } }
/** * Get the state of the media. * * @see State */ public int getState() { synchronized (this) { if (mState != -1) return mState; if (isReleased()) return State.Error; } final int state = nativeGetState(); synchronized (this) { mState = state; return mState; } }
/** * Get the state of the media. * * @see State */ public int getState() { synchronized (this) { if (mState != -1) return mState; if (isReleased()) return State.Error; } final int state = nativeGetState(); synchronized (this) { mState = state; return mState; } }