add GUI elements to control 2in/2out panning. Probably not perfect. REQUIRES FULL...
[ardour.git] / gtk2_ardour / audio_streamview.cc
index c66685d5d72a23939fed21fcbb30c6b9ee38143a..1f1ee9d82c08ac11e547858c660b357f664104f5 100644 (file)
@@ -463,9 +463,9 @@ AudioStreamView::setup_rec_box ()
                                        if (src) {
                                                sources.push_back (src);
                                                src->PeakRangeReady.connect (rec_data_ready_connections,
-                                                                             invalidator (*this),
-                                                                            ui_bind (&AudioStreamView::rec_peak_range_ready, this, _1, _2, boost::weak_ptr<Source>(src)),
-                                                                            gui_context());
+                                                                            invalidator (*this),
+                                                                            ui_bind (&AudioStreamView::rec_peak_range_ready, this, _1, _2, boost::weak_ptr<Source>(src)),
+                                                                            gui_context());
                                        }
                                }
 
@@ -637,6 +637,8 @@ AudioStreamView::update_rec_regions (framepos_t start, framecnt_t cnt)
                
                list<pair<boost::shared_ptr<Region>,RegionView*> >::iterator tmp = iter;
                ++tmp;
+
+               assert (n < rec_rects.size());
                
                if (!canvas_item_visible (rec_rects[n].rectangle)) {
                        /* rect already hidden, this region is done */
@@ -705,9 +707,9 @@ AudioStreamView::update_rec_regions (framepos_t start, framecnt_t cnt)
                                        }
                                }
                        }
-
-                       iter = tmp;
                }
+
+               iter = tmp;
        }
 }