[vlc-commits] demux: adaptative: handle restartdemux return value

Francois Cartegnie git at videolan.org
Tue Nov 10 11:17:42 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 10 10:59:08 2015 +0100| [1b74004823e88c9a3a22acfe9832cfbbd420155f] | committer: Francois Cartegnie

demux: adaptative: handle restartdemux return value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b74004823e88c9a3a22acfe9832cfbbd420155f
---

 modules/demux/adaptative/Streams.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/adaptative/Streams.cpp b/modules/demux/adaptative/Streams.cpp
index 25d3b46..1c21ae5 100644
--- a/modules/demux/adaptative/Streams.cpp
+++ b/modules/demux/adaptative/Streams.cpp
@@ -351,7 +351,8 @@ bool AbstractStream::setPosition(mtime_t time, bool tryonly)
                 delete currentChunk;
             currentChunk = NULL;
 
-            restartDemux();
+            if( !restartDemux() )
+                dead = true;
 
             /* Check if we need to set an offset as the demuxer
              * will start from zero from seek point */



More information about the vlc-commits mailing list