mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
SRT parser: add debug output
This commit is contained in:
parent
ac2a26369c
commit
5d18a7d804
@ -111,6 +111,8 @@ srt_parser_c::parse() {
|
||||
line_number++;
|
||||
strip_back(s);
|
||||
|
||||
mxdebug_if(m_debug, fmt::format("line {0} state {1} content »{2}«\n", line_number, state == STATE_INITIAL ? "initial" : state == STATE_TIME ? "time" : state == STATE_SUBS ? "subs" : "subs-or-number", s));
|
||||
|
||||
if (s.empty()) {
|
||||
if ((STATE_INITIAL == state) || (STATE_TIME == state))
|
||||
continue;
|
||||
|
@ -88,6 +88,7 @@ protected:
|
||||
const std::string &m_file_name;
|
||||
int64_t m_tid;
|
||||
bool m_coordinates_warning_shown;
|
||||
debugging_option_c m_debug{"srt_parser"};
|
||||
|
||||
public:
|
||||
srt_parser_c(mm_text_io_cptr const &io, const std::string &file_name, int64_t tid);
|
||||
|
Loading…
Reference in New Issue
Block a user