Skip to content

modules/demux/adaptive/playlist: add missing <ctime> include

orbea requested to merge orbea/vlc:orbea-master-patch-51739 into master

With musl it fails to build because <ctime> is not included.

In file included from demux/adaptive/SegmentTracker.cpp:27:
demux/adaptive/playlist/BasePlaylist.hpp:69:26: error: 'time_t' was not declared in this scope
   69 |                 Property<time_t>                    playbackStart;
      |                          ^~~~~~
demux/adaptive/playlist/BasePlaylist.hpp:29:1: note: 'time_t' is defined in header '<ctime>'; did you forget to '#include <ctime>'?
   28 | #include "Inheritables.hpp"
  +++ |+#include <ctime>
   29 | #include "../tools/Properties.hpp"
demux/adaptive/playlist/BasePlaylist.hpp:69:32: error: template argument 1 is invalid
   69 |                 Property<time_t>                    playbackStart;
      |                                ^

Merge request reports

Loading