[vlc-commits] demux: adaptive: constify notifications

Francois Cartegnie git at videolan.org
Wed Sep 21 18:52:32 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep 21 12:47:42 2016 +0200| [8911bd490143bc92f96b558b13a99a912fd05e7a] | committer: Francois Cartegnie

demux: adaptive: constify notifications

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

 modules/demux/adaptive/SegmentTracker.cpp | 2 +-
 modules/demux/adaptive/SegmentTracker.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/SegmentTracker.cpp b/modules/demux/adaptive/SegmentTracker.cpp
index 96d8723..e75ed32 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -316,7 +316,7 @@ void SegmentTracker::updateSelected()
     }
 }
 
-void SegmentTracker::notify(const SegmentTrackerEvent &event)
+void SegmentTracker::notify(const SegmentTrackerEvent &event) const
 {
     std::list<SegmentTrackerListenerInterface *>::const_iterator it;
     for(it=listeners.begin();it != listeners.end(); ++it)
diff --git a/modules/demux/adaptive/SegmentTracker.hpp b/modules/demux/adaptive/SegmentTracker.hpp
index 301fdff..e85d006 100644
--- a/modules/demux/adaptive/SegmentTracker.hpp
+++ b/modules/demux/adaptive/SegmentTracker.hpp
@@ -103,7 +103,7 @@ namespace adaptive
 
         private:
             void setAdaptationLogic(AbstractAdaptationLogic *);
-            void notify(const SegmentTrackerEvent &);
+            void notify(const SegmentTrackerEvent &) const;
             bool first;
             bool initializing;
             bool index_sent;



More information about the vlc-commits mailing list