[vlc-commits] demux: adaptive: show codecs on debug

Francois Cartegnie git at videolan.org
Mon Mar 30 16:15:39 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 17 21:13:45 2019 +0200| [94dbdc0be2173c54c50a2c527a355f0a2bdc1860] | committer: Francois Cartegnie

demux: adaptive: show codecs on debug

(cherry picked from commit 8b8ff08628afb7db2fd345d92f5d8bf137db091c)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=94dbdc0be2173c54c50a2c527a355f0a2bdc1860
---

 modules/demux/adaptive/playlist/BaseRepresentation.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/demux/adaptive/playlist/BaseRepresentation.cpp b/modules/demux/adaptive/playlist/BaseRepresentation.cpp
index ca047df24a..fd34e7e21b 100644
--- a/modules/demux/adaptive/playlist/BaseRepresentation.cpp
+++ b/modules/demux/adaptive/playlist/BaseRepresentation.cpp
@@ -153,6 +153,14 @@ void BaseRepresentation::debug(vlc_object_t *obj, int indent) const
     std::string text(indent, ' ');
     text.append("Representation ");
     text.append(id.str());
+    if(!codecs.empty())
+    {
+        std::list<std::string>::const_iterator c = codecs.begin();
+        text.append(" [" + *c++);
+        while(c != codecs.end())
+            text.append("," + *c++);
+        text.append("]");
+    }
     msg_Dbg(obj, "%s", text.c_str());
     std::vector<ISegment *> list;
     getAllSegments(list);



More information about the vlc-commits mailing list