コード例 #1
0
ファイル: BasicCMManager.cpp プロジェクト: RicoP/vlcfork
std::vector<Segment*>   BasicCMManager::getSegments( const Representation *rep )
{
    std::vector<Segment *>          retSegments;
    SegmentInfo*                    info = rep->getSegmentInfo();
    Segment*                        initSegment = info->getInitialisationSegment();

    if ( initSegment )
        retSegments.push_back( initSegment );
    retSegments.insert( retSegments.end(), info->getSegments().begin(),
                                            info->getSegments().end() );
    return retSegments;
}
コード例 #2
0
std::vector<Segment*>           BasicCMManager::getSegments             (Representation *rep) const
{
    std::vector<Segment *> retSegments;

    SegmentInfo *info = rep->getSegmentInfo();
    Segment     *init = info->getInitSegment();

    retSegments.push_back(init);

    std::vector<Segment *> segments = info->getSegments();

    for(unsigned int i = 0; i < segments.size(); i++)
        retSegments.push_back(segments.at(i));

    return retSegments;
}