Commit f114d08a authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: unexpose internal callback method

parent 2fd859d0
......@@ -74,11 +74,11 @@ namespace adaptive
virtual block_t * readBlock ();
virtual block_t * read (size_t);
virtual void onDownload (block_t **) = 0;
protected:
AbstractChunk(AbstractChunkSource *);
AbstractChunkSource *source;
virtual void onDownload (block_t **) = 0;
private:
size_t bytesRead;
......@@ -152,6 +152,7 @@ namespace adaptive
const ID &, bool = false);
virtual ~HTTPChunk();
protected:
virtual void onDownload (block_t **) {} /* impl */
};
}
......
......@@ -40,11 +40,11 @@ namespace adaptive
public:
SegmentChunk(ISegment *segment, AbstractChunkSource *, BaseRepresentation *);
virtual ~SegmentChunk();
virtual void onDownload(block_t **); // reimpl
StreamFormat getStreamFormat() const;
bool discontinuity;
protected:
virtual void onDownload(block_t **); // reimpl
ISegment *segment;
BaseRepresentation *rep;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment