vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Aug 8 13:33:15 2018 +0200| [fa4d9d65fd8aefcf29a9d3945150410616c005e5] | committer: Francois Cartegnie
demux: adaptive: check connection for content-type > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa4d9d65fd8aefcf29a9d3945150410616c005e5 --- modules/demux/adaptive/http/Chunk.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/demux/adaptive/http/Chunk.cpp b/modules/demux/adaptive/http/Chunk.cpp index a4269e31fc..5c3133c725 100644 --- a/modules/demux/adaptive/http/Chunk.cpp +++ b/modules/demux/adaptive/http/Chunk.cpp @@ -218,7 +218,10 @@ block_t * HTTPChunkSource::read(size_t readsize) std::string HTTPChunkSource::getContentType() const { - return connection->getContentType(); + if(connection) + return connection->getContentType(); + else + return std::string(); } bool HTTPChunkSource::prepare() _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
