mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Before this CL, the following scenario could happen: - A new input stream is registered to the DefaultVideoFrameProcessor. - Before the pipeline is reconfigured, a seek is issued andd the DefaultVideoFrameProcessor is flushed. - As a result, the new input stream registration is never taken into account. As a result: - If an input stream is registered after the seek (before queueing any frame), registerInputStream will block indefinitely because inputStreamRegisteredCondition will be closed. - If a frame is queued after the seek, it will be linked to the input stream information of the previous frames. This CL makes sure that any pending input stream is registered after a flush. PiperOrigin-RevId: 698736866