diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-03 23:37:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-03 23:46:05 +0200 |
commit | 6b5d37435277c292182be0f57e96826bccf4733c (patch) | |
tree | cd04f4c6fbb3b12c6b41b7bf639df2dd37155498 /libs/ardour/session_ltc.cc | |
parent | 1937c74191468b4e9e4baa251bb6329a3818d8e4 (diff) |
Some more assert() debugging
Diffstat (limited to 'libs/ardour/session_ltc.cc')
-rw-r--r-- | libs/ardour/session_ltc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc index 91e11c8a4c..8acb16dde3 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -64,6 +64,7 @@ using namespace Timecode; void Session::ltc_tx_initialize() { + assert (!ltc_encoder && !ltc_enc_buf); ltc_enc_tcformat = config.get_timecode_format(); ltc_tx_parse_offset(); @@ -93,11 +94,11 @@ void Session::ltc_tx_cleanup() { DEBUG_TRACE (DEBUG::LTC, "LTC TX cleanup\n"); + ltc_tx_connections.drop_connections (); free(ltc_enc_buf); ltc_enc_buf = NULL; ltc_encoder_free(ltc_encoder); ltc_encoder = NULL; - ltc_tx_connections.drop_connections (); } void |