MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ on_container_state_change()

void MayaFlux::Buffers::VideoStreamReader::on_container_state_change ( const std::shared_ptr< Kakshya::SignalSourceContainer > &  container,
Kakshya::ProcessingState  state 
)
private

Respond to container state changes.

Mirrors SoundStreamReader's state callback pattern for lifecycle synchronisation between container and buffer.

Parameters
containerThe container whose state changed.
stateThe new processing state.

Definition at line 187 of file VideoContainerBuffer.cpp.

190{
191 switch (state) {
194 "VideoStreamReader: Container marked for removal");
195 break;
196
199 "VideoStreamReader: Container entered ERROR state");
200 break;
201
202 default:
203 break;
204 }
205}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
@ NEEDS_REMOVAL
Container is marked for removal from the system.
@ ERROR
Container is in an error state and cannot proceed.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Kakshya::ERROR, MF_ERROR, MF_INFO, and MayaFlux::Kakshya::NEEDS_REMOVAL.

Referenced by set_container(), and VideoStreamReader().

+ Here is the caller graph for this function: