Rename signalEndOfInputStream()

This is because the method is called for each media item, the current name
implies that the method is only called once for all videos in a sequence.

PiperOrigin-RevId: 695332916
This commit is contained in:
claincly 2024-11-11 07:40:59 -08:00 committed by Copybara-Service
parent fa790bd73c
commit 01c784775e
2 changed files with 3 additions and 3 deletions

View File

@ -670,7 +670,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
// configured. // configured.
this.pendingInputStreamInfo = pendingInputStreamInfo; this.pendingInputStreamInfo = pendingInputStreamInfo;
inputStreamRegisteredCondition.close(); inputStreamRegisteredCondition.close();
inputSwitcher.activeTextureManager().signalEndOfCurrentInputStream(); inputSwitcher.signalEndOfCurrentInputStream();
} }
} }
} }
@ -728,7 +728,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
DebugTraceUtil.logEvent(COMPONENT_VFP, EVENT_RECEIVE_END_OF_ALL_INPUT, C.TIME_END_OF_SOURCE); DebugTraceUtil.logEvent(COMPONENT_VFP, EVENT_RECEIVE_END_OF_ALL_INPUT, C.TIME_END_OF_SOURCE);
checkState(!inputStreamEnded); checkState(!inputStreamEnded);
inputStreamEnded = true; inputStreamEnded = true;
inputSwitcher.signalEndOfInputStream(); inputSwitcher.signalEndOfCurrentInputStream();
} }
/** /**

View File

@ -198,7 +198,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
* Invokes {@link TextureManager#signalEndOfCurrentInputStream} on the active {@link * Invokes {@link TextureManager#signalEndOfCurrentInputStream} on the active {@link
* TextureManager}. * TextureManager}.
*/ */
public void signalEndOfInputStream() { public void signalEndOfCurrentInputStream() {
checkNotNull(activeTextureManager).signalEndOfCurrentInputStream(); checkNotNull(activeTextureManager).signalEndOfCurrentInputStream();
} }