[vlc-commits] demux: adaptive: unexpose internal callback method
Francois Cartegnie
git at videolan.org
Tue Apr 30 14:27:58 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr 18 15:48:08 2019 +0200| [f114d08a13beea26ea9f95b1ff1486e99979acb3] | committer: Francois Cartegnie
demux: adaptive: unexpose internal callback method
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f114d08a13beea26ea9f95b1ff1486e99979acb3
---
modules/demux/adaptive/http/Chunk.h | 3 ++-
modules/demux/adaptive/playlist/SegmentChunk.hpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/http/Chunk.h b/modules/demux/adaptive/http/Chunk.h
index c1eb3ba2e5..7b1c471355 100644
--- a/modules/demux/adaptive/http/Chunk.h
+++ b/modules/demux/adaptive/http/Chunk.h
@@ -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 */
};
}
diff --git a/modules/demux/adaptive/playlist/SegmentChunk.hpp b/modules/demux/adaptive/playlist/SegmentChunk.hpp
index 0d8906e59d..5673301c83 100644
--- a/modules/demux/adaptive/playlist/SegmentChunk.hpp
+++ b/modules/demux/adaptive/playlist/SegmentChunk.hpp
@@ -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;
};
More information about the vlc-commits
mailing list