diff --git a/modules/demux/adaptive/playlist/BasePlaylist.hpp b/modules/demux/adaptive/playlist/BasePlaylist.hpp index 34a08e12e3f8721efeaf604e0e001e853f3e9410..6d4f430dc6b6812fc5c6b01ebec0e520787cd610 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 948b8e320b2b8d1181d54a80be678dcf3f24a987..5509ede6f531a839fba1da630c8d23c73a29365e 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 f0f677cc16998e93c44047b65ef4aad7c7e58dad..cd8110f0a299342db951ff7cbf0a06bf5e3bdf8f 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;