summaryrefslogtreecommitdiff
path: root/ptformat
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2019-06-22 17:15:10 +1000
committerDamien Zammit <damien@zamaudio.com>2019-06-22 17:15:56 +1000
commit6240b87cc8639d8402049fdccef2214286d6e0e3 (patch)
tree0eb48da2e05482932ffd20faef4f295bdc0210e6 /ptformat
parentea2a1744a6aeb8d4411586de524952209c263c2f (diff)
Remove nesting limit && fix wasted time recursively scanning regions with no children
Diffstat (limited to 'ptformat')
-rw-r--r--ptformat/ptformat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptformat/ptformat.h b/ptformat/ptformat.h
index 4b0e8bd..43b4dc1 100644
--- a/ptformat/ptformat.h
+++ b/ptformat/ptformat.h
@@ -267,7 +267,7 @@ private:
bool parseaudio(void);
bool parsemidi(void);
void dump(void);
- bool parse_block_at(uint32_t pos, struct block_t *b, int level);
+ bool parse_block_at(uint32_t pos, struct block_t *b, struct block_t *parent, int level);
void dump_block(struct block_t& b, int level);
bool parse_version();
void parse_region_info(uint32_t j, block_t& blk, region_t& r);