[vlc-commits] demux: dash: fix debug overloading

Francois Cartegnie git at videolan.org
Fri Jan 8 13:20:33 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan  7 13:05:02 2021 +0100| [c9732cfeeb31fc616f092276d4db2cf45ae92768] | committer: Francois Cartegnie

demux: dash: fix debug overloading

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

 modules/demux/adaptive/playlist/BasePlaylist.hpp | 2 +-
 modules/demux/dash/mpd/MPD.cpp                   | 6 ++----
 modules/demux/dash/mpd/MPD.h                     | 2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/demux/adaptive/playlist/BasePlaylist.hpp b/modules/demux/adaptive/playlist/BasePlaylist.hpp
index 34a08e12e3..6d4f430dc6 100644
--- a/modules/demux/adaptive/playlist/BasePlaylist.hpp
+++ b/modules/demux/adaptive/playlist/BasePlaylist.hpp
@@ -49,7 +49,7 @@ namespace adaptive
                 void                            setMaxBuffering( vlc_tick_t );
                 vlc_tick_t                      getMinBuffering() const;
                 vlc_tick_t                      getMaxBuffering() const;
-                void                            debug() const;
+                virtual void                    debug() const;
 
                 void    addPeriod               (BasePeriod *period);
                 void    addBaseUrl              (const std::string &);
diff --git a/modules/demux/dash/mpd/MPD.cpp b/modules/demux/dash/mpd/MPD.cpp
index 948b8e320b..5509ede6f5 100644
--- a/modules/demux/dash/mpd/MPD.cpp
+++ b/modules/demux/dash/mpd/MPD.cpp
@@ -76,7 +76,7 @@ Profile MPD::getProfile() const
     return profile;
 }
 
-void MPD::debug()
+void MPD::debug() const
 {
     msg_Dbg(p_object, "MPD profile=%s mediaPresentationDuration=%" PRId64
             " minBufferTime=%" PRId64,
@@ -85,7 +85,5 @@ void MPD::debug()
             minBufferTime);
     msg_Dbg(p_object, "BaseUrl=%s", getUrlSegment().toString().c_str());
 
-    std::vector<BasePeriod *>::const_iterator i;
-    for(i = periods.begin(); i != periods.end(); ++i)
-        (*i)->debug(VLC_OBJECT(p_object));
+    BasePlaylist::debug();
 }
diff --git a/modules/demux/dash/mpd/MPD.h b/modules/demux/dash/mpd/MPD.h
index f0f677cc16..cd8110f0a2 100644
--- a/modules/demux/dash/mpd/MPD.h
+++ b/modules/demux/dash/mpd/MPD.h
@@ -50,7 +50,7 @@ namespace dash
                 virtual bool                    isLive() const override;
                 virtual bool                    isLowLatency() const override;
                 void                            setLowLatency(bool);
-                virtual void                    debug();
+                virtual void                    debug() const override;
 
                 Property<ProgramInformation *>      programInfo;
 



More information about the vlc-commits mailing list