diff --git a/matroska/KaxCluster.h b/matroska/KaxCluster.h index 52f1bb7d..4ebc64bb 100644 --- a/matroska/KaxCluster.h +++ b/matroska/KaxCluster.h @@ -46,7 +46,7 @@ DECLARE_MKX_MASTER_CONS(KaxCluster) /*! \brief Render the data to the stream and retrieve the position of BlockGroups for later cue entries */ - libebml::filepos_t Render(libebml::IOCallback & output, KaxCues & CueToUpdate, ShouldWrite writeFilter = WriteSkipDefault); + libebml::filepos_t Render(libebml::IOCallback & output, KaxCues & CueToUpdate, const ShouldWrite& writeFilter = WriteSkipDefault); /*! \return the global timestamp of this Cluster diff --git a/matroska/KaxCues.h b/matroska/KaxCues.h index b26d7356..605252c6 100644 --- a/matroska/KaxCues.h +++ b/matroska/KaxCues.h @@ -34,7 +34,7 @@ DECLARE_MKX_MASTER(KaxCues) /*! \brief override to sort by timestamp/track */ - libebml::filepos_t Render(libebml::IOCallback & output, ShouldWrite writeFilter = WriteSkipDefault) { + libebml::filepos_t Render(libebml::IOCallback & output, const ShouldWrite& writeFilter = WriteSkipDefault) { Sort(); return EbmlMaster::Render(output, writeFilter); } diff --git a/src/KaxCluster.cpp b/src/KaxCluster.cpp index be5a3cf1..5b802bf4 100644 --- a/src/KaxCluster.cpp +++ b/src/KaxCluster.cpp @@ -113,7 +113,7 @@ bool KaxCluster::AddFrame(const KaxTrackEntry & track, std::uint64_t timestamp, /*! \todo only put the Blocks written in the cue entries */ -filepos_t KaxCluster::Render(IOCallback & output, KaxCues & CueToUpdate, ShouldWrite writeFilter) +filepos_t KaxCluster::Render(IOCallback & output, KaxCues & CueToUpdate, const ShouldWrite& writeFilter) { filepos_t Result = 0;