[vlc-commits] demux: dash: debug using stream ID instead of mime type

Francois Cartegnie git at videolan.org
Wed Feb 12 19:16:00 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 12 18:14:57 2020 +0100| [86b73484cd919b3441c5ea150eb358b3db75ced9] | committer: Francois Cartegnie

demux: dash: debug using stream ID instead of mime type

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

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

diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index 158e257ef3..b05ba1f189 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -267,15 +267,16 @@ void    IsoffMainParser::parseAdaptationSets  (Node *periodNode, Period *period)
                     adaptationSet->setRole(Role::ROLE_SUBTITLE);
             }
         }
-#ifdef ADAPTATIVE_ADVANCED_DEBUG
-        if(adaptationSet->description.Get().empty())
-            adaptationSet->description.Set(adaptationSet->getMimeType());
-#endif
 
         parseSegmentInformation(*it, adaptationSet, &nextid);
 
         parseRepresentations((*it), adaptationSet);
 
+#ifdef ADAPTATIVE_ADVANCED_DEBUG
+        if(adaptationSet->description.Get().empty())
+            adaptationSet->description.Set(adaptationSet->getID().str());
+#endif
+
         if(!adaptationSet->getRepresentations().empty())
             period->addAdaptationSet(adaptationSet);
         else



More information about the vlc-commits mailing list