src/libtsduck/dtv/tables/tsPMT.cpp
ts::PID ts::PMT::firstVideoPID() const
{
    for (auto it = streams.begin(); it != streams.end(); ++it) {
        if (it->second.isVideo()) {
            return it->first;
        }
    }
    return PID_NULL; // not found
}
//----------------------------------------------------------------------------
// Search the first video PID in the service.
//----------------------------------------------------------------------------
Search the first video PID in the service.
Search the first video PID in the service .
ts::PID ts::PMT::firstVideoPID() const
{
    for (auto it = streams.begin(); it != streams.end(); ++it) {
        if (it->second.isVideo()) {
            return it->first;
        }
    }
    return PID_NULL; 
}
ts :: PID ts :: PMT :: firstVideoPID ( ) const { for ( auto it = streams . begin ( ) ; it != streams . end ( ) ; ++ it ) { if ( it -> second . isVideo ( ) ) { return it -> first ; } } return PID_NULL ; }
Search the first video PID in the service.
Search the first video PID in the service .
// not found