Chunk *chunk = segment->toChunk(count, rep);
if(chunk)
- {
- segment->done();
count++;
- }
+
return chunk;
}
return chunk;
}
-bool ISegment::isSingleShot() const
-{
- return true;
-}
-void ISegment::done()
-{
- //Only used for a SegmentTemplate.
-}
-
void ISegment::setByteRange(size_t start, size_t end)
{
startByte = start;
* That is basically true when using an Url, and false
* when using an UrlTemplate
*/
- virtual bool isSingleShot () const;
- virtual void done ();
virtual dash::http::Chunk* toChunk (size_t, Representation * = NULL);
virtual void setByteRange (size_t start, size_t end);
virtual size_t getOffset () const;
startIndex = i;
}
-bool SegmentTemplate::isSingleShot() const
-{
- return false;
-}
-
InitSegmentTemplate::InitSegmentTemplate( ICanonicalUrl *parent ) :
SegmentTemplate(parent)
{
public:
SegmentTemplate( ICanonicalUrl * = NULL );
virtual Url getUrlSegment() const; /* reimpl */
- virtual bool isSingleShot() const;
size_t getStartIndex() const;
void setStartIndex(size_t);
Property<mtime_t> duration;