src/libtsduck/plugin/private/tstsswitchInputExecutor.cpp
void ts::tsswitch::InputExecutor::getOutputArea(ts::TSPacket*& first, TSPacketMetadata*& data, size_t& count)
{
    GuardCondition lock(_mutex, _todo);
    first = &_buffer[_outFirst];
    data = &_metadata[_outFirst];
    count = std::min(_outCount, _buffer.size() - _outFirst);
    _outputInUse = count > 0;
    lock.signal();
}
//----------------------------------------------------------------------------
// Get some packets to output.
// Indirectly called from the output plugin when it needs some packets.
//----------------------------------------------------------------------------
Get some packets to output.
Indirectly called from the output plugin when it needs some packets.
Get some packets to output . Indirectly called from the output plugin when it needs some packets .
void ts::tsswitch::InputExecutor::getOutputArea(ts::TSPacket*& first, TSPacketMetadata*& data, size_t& count)
{
    GuardCondition lock(_mutex, _todo);
    first = &_buffer[_outFirst];
    data = &_metadata[_outFirst];
    count = std::min(_outCount, _buffer.size() - _outFirst);
    _outputInUse = count > 0;
    lock.signal();
}
void ts :: tsswitch :: InputExecutor :: getOutputArea ( ts :: TSPacket * & first , TSPacketMetadata * & data , size_t & count ) { GuardCondition lock ( _mutex , _todo ) ; first = & _buffer [ _outFirst ] ; data = & _metadata [ _outFirst ] ; count = std :: min ( _outCount , _buffer . size ( ) - _outFirst ) ; _outputInUse = count > 0 ; lock . signal ( ) ; }
Get some packets to output.
Get some packets to output .