MayaFlux 0.2.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 178 of file VideoContainerBuffer.cpp.

181{
182 switch (state) {
185 "VideoStreamReader: Container marked for removal");
186 break;
187
190 "VideoStreamReader: Container entered ERROR state");
191 break;
192
193 default:
194 break;
195 }
196}
#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: