From cffc0bf3e4beb254df1ae48e6c369c7124e9ba3f Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Fri, 17 Feb 2017 15:17:07 +0100 Subject: DLS: emit warning on shortened oversized text --- src/dls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dls.cpp') diff --git a/src/dls.cpp b/src/dls.cpp index 1c680c0..cec806a 100644 --- a/src/dls.cpp +++ b/src/dls.cpp @@ -232,8 +232,10 @@ void DLSManager::writeDLS(const std::string& dls_file, const DL_PARAMS& dl_param } dl_state.dl_text = ss.str(); - if (dl_state.dl_text.size() > MAXDLS) + if (dl_state.dl_text.size() > MAXDLS) { + fprintf(stderr, "ODR-PadEnc Warning: oversized DLS text (%zu chars) had to be shortened\n", dl_state.dl_text.size()); dl_state.dl_text.resize(MAXDLS); + } // if DL Plus enabled, but no DL Plus tags were added, add the required DUMMY tag -- cgit v1.2.3