mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add @CallSuper annotations in SimpleDecoder
The implementation can't work properly unless these methods are called by subclasses, so annotate them to require calling the super implementation when overriding. PiperOrigin-RevId: 265017433
This commit is contained in:
parent
29af6899fe
commit
aae64151e0
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
*/
|
*/
|
||||||
package com.google.android.exoplayer2.decoder;
|
package com.google.android.exoplayer2.decoder;
|
||||||
|
|
||||||
|
import androidx.annotation.CallSuper;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import com.google.android.exoplayer2.C;
|
import com.google.android.exoplayer2.C;
|
||||||
import com.google.android.exoplayer2.util.Assertions;
|
import com.google.android.exoplayer2.util.Assertions;
|
||||||
|
|
@ -125,6 +126,7 @@ public abstract class SimpleDecoder<
|
||||||
*
|
*
|
||||||
* @param outputBuffer The output buffer being released.
|
* @param outputBuffer The output buffer being released.
|
||||||
*/
|
*/
|
||||||
|
@CallSuper
|
||||||
protected void releaseOutputBuffer(O outputBuffer) {
|
protected void releaseOutputBuffer(O outputBuffer) {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
releaseOutputBufferInternal(outputBuffer);
|
releaseOutputBufferInternal(outputBuffer);
|
||||||
|
|
@ -150,6 +152,7 @@ public abstract class SimpleDecoder<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CallSuper
|
||||||
@Override
|
@Override
|
||||||
public void release() {
|
public void release() {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue