[vlc-commits] dash: DASHManager: Prevent a crash when the downloader fails to start.

Hugo Beauzée-Luyssen git at videolan.org
Thu May 24 11:39:40 CEST 2012


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu May 24 11:39:18 2012 +0200| [68c2317b680d5eabdcb73224fe7e9bd0941ad002] | committer: Hugo Beauzée-Luyssen

dash: DASHManager: Prevent a crash when the downloader fails to start.

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

 modules/stream_filter/dash/DASHManager.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/stream_filter/dash/DASHManager.cpp b/modules/stream_filter/dash/DASHManager.cpp
index d89b9a2..a96575a 100644
--- a/modules/stream_filter/dash/DASHManager.cpp
+++ b/modules/stream_filter/dash/DASHManager.cpp
@@ -36,12 +36,15 @@ using namespace dash::buffer;
 
 DASHManager::DASHManager    ( MPD *mpd,
                               IAdaptationLogic::LogicType type, stream_t *stream) :
+             conManager     ( NULL ),
              currentChunk   ( NULL ),
              adaptationLogic( NULL ),
              logicType      ( type ),
              mpdManager     ( NULL ),
              mpd            ( mpd ),
-             stream         (stream)
+             stream         ( stream ),
+             downloader     ( NULL ),
+             buffer         ( NULL )
 {
 }
 DASHManager::~DASHManager   ()



More information about the vlc-commits mailing list