src/libtsduck/dtv/tsDescriptorList.cpp
void ts::DescriptorList::add(DuckContext& duck, const AbstractDescriptor& desc)
{
    DescriptorPtr pd(new Descriptor);
    CheckNonNull(pd.pointer());
    desc.serialize(duck, *pd);
    if (pd->isValid()) {
        add(pd);
    }
}
//----------------------------------------------------------------------------
// Add one descriptor at end of list
//----------------------------------------------------------------------------
Add one descriptor at end of list
Add one descriptor at end of list
void ts::DescriptorList::add(DuckContext& duck, const AbstractDescriptor& desc)
{
    DescriptorPtr pd(new Descriptor);
    CheckNonNull(pd.pointer());
    desc.serialize(duck, *pd);
    if (pd->isValid()) {
        add(pd);
    }
}
void ts :: DescriptorList :: add ( DuckContext & duck , const AbstractDescriptor & desc ) { DescriptorPtr pd ( new Descriptor ) ; CheckNonNull ( pd . pointer ( ) ) ; desc . serialize ( duck , * pd ) ; if ( pd -> isValid ( ) ) { add ( pd ) ; } }
Add one descriptor at end of list
Add one descriptor at end of list