[vlc-commits] adaptive: BasePeriod: mark getPeriodDuration as override

Alexandre Janniaux git at videolan.org
Mon Feb 15 15:06:07 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Feb  9 15:03:07 2021 +0100| [2906b93d005de3212bca73896ac8143cd4138286] | committer: Alexandre Janniaux

adaptive: BasePeriod: mark getPeriodDuration as override

Fix the warning:

../../modules/demux/smooth/playlist/../../adaptive/playlist/BasePeriod.h:49:36: warning: 'getPeriodDuration' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
                virtual vlc_tick_t getPeriodDuration() const;
                                   ^

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

 modules/demux/adaptive/playlist/BasePeriod.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/playlist/BasePeriod.h b/modules/demux/adaptive/playlist/BasePeriod.h
index 3d9b81571f..5e40a2364c 100644
--- a/modules/demux/adaptive/playlist/BasePeriod.h
+++ b/modules/demux/adaptive/playlist/BasePeriod.h
@@ -46,7 +46,7 @@ namespace adaptive
                 void                                debug               (vlc_object_t *,int = 0) const;
 
                 virtual vlc_tick_t getPeriodStart() const override;
-                virtual vlc_tick_t getPeriodDuration() const;
+                virtual vlc_tick_t getPeriodDuration() const override;
                 virtual BasePlaylist *getPlaylist() const override;
 
                 Property<vlc_tick_t> duration;



More information about the vlc-commits mailing list