Investigate alleged crash on intel mac

This commit is contained in:
Robin Gareus
2024-12-10 19:23:52 +01:00
parent 15c86492fa
commit f575a48973

View File

@@ -676,10 +676,12 @@ Bundle::overall_channel_to_type (DataType t, uint32_t c) const
Glib::Threads::Mutex::Lock lm (_channel_mutex);
assert (_channel.size () > c);
uint32_t s = 0;
vector<Channel>::const_iterator i = _channel.begin ();
for (uint32_t j = 0; j < c; ++j) {
for (uint32_t j = 0; j < c && i != _channel.end (); ++j) {
if (i->type == t) {
++s;
}