[vlc-commits] demux: dash: name stream as mimetype for debug

Francois Cartegnie git at videolan.org
Wed Oct 7 18:56:57 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct  7 17:14:52 2015 +0200| [60aa97ccb4f6769cce288f7d2695bbbb05f8e68e] | committer: Francois Cartegnie

demux: dash: name stream as mimetype for debug

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

 modules/demux/dash/mpd/IsoffMainParser.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index bdf9d7e..40645ae 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -41,6 +41,7 @@
 #include "DASHSegment.h"
 #include "../xml/DOMHelper.h"
 #include "../adaptative/tools/Helper.h"
+#include "../adaptative/tools/Debug.hpp"
 #include <vlc_strings.h>
 #include <vlc_stream.h>
 #include <cstdio>
@@ -256,6 +257,10 @@ void    IsoffMainParser::setAdaptationSets  (Node *periodNode, Period *period)
             if(uri == "urn:mpeg:dash:role:2011")
                 adaptationSet->description.Set(role->getAttributeValue("value"));
         }
+#ifdef ADAPTATIVE_ADVANCED_DEBUG
+        if(adaptationSet->description.Get().empty())
+            adaptationSet->description.Set(adaptationSet->getMimeType());
+#endif
 
         parseSegmentInformation(*it, adaptationSet, &nextid);
 



More information about the vlc-commits mailing list