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

◆ set_container()

void MayaFlux::Buffers::VideoStreamReader::set_container ( const std::shared_ptr< Kakshya::StreamContainer > &  container)

Replace the backing container.

Parameters
containerNew StreamContainer to read from.

Definition at line 156 of file VideoContainerBuffer.cpp.

157{
158 if (m_container) {
159 m_container->unregister_dimension_reader(0);
160 m_container->unregister_state_change_callback();
161 }
162
163 m_container = container;
164
165 if (container) {
166 m_reader_id = container->register_dimension_reader(0);
167 container->register_state_change_callback(
168 [this](const auto& c, auto s) {
169 this->on_container_state_change(c, s);
170 });
171 }
172}
void on_container_state_change(const std::shared_ptr< Kakshya::SignalSourceContainer > &container, Kakshya::ProcessingState state)
Respond to container state changes.
std::shared_ptr< Kakshya::StreamContainer > m_container

References m_container, m_reader_id, and on_container_state_change().

+ Here is the call graph for this function: