src/libtsduck/dtv/tsPESDemux.cpp
void ts::PESDemux::getAudioAttributes(PID pid, AudioAttributes& va) const
{
    PIDContextMap::const_iterator pci = _pids.find(pid);
    if (pci == _pids.end() || !pci->second.audio.isValid()) {
        va.invalidate();
    }
    else {
        va = pci->second.audio;
    }
}
//----------------------------------------------------------------------------
// Get current audio/video attributes on the specified PID.
// Check isValid() on returned object.
//----------------------------------------------------------------------------
Get current audio/video attributes on the specified PID.
Check isValid() on returned object.
Get current audio / video attributes on the specified PID . Check isValid () on returned object .
void ts::PESDemux::getAudioAttributes(PID pid, AudioAttributes& va) const
{
    PIDContextMap::const_iterator pci = _pids.find(pid);
    if (pci == _pids.end() || !pci->second.audio.isValid()) {
        va.invalidate();
    }
    else {
        va = pci->second.audio;
    }
}
void ts :: PESDemux :: getAudioAttributes ( PID pid , AudioAttributes & va ) const { PIDContextMap :: const_iterator pci = _pids . find ( pid ) ; if ( pci == _pids . end ( ) || ! pci -> second . audio . isValid ( ) ) { va . invalidate ( ) ; } else { va = pci -> second . audio ; } }
Get current audio/video attributes on the specified PID.
Get current audio / video attributes on the specified PID .