ClipListProto serialize() const;
- void change_num_cameras(size_t num_cameras); // Defaults to 1. Cannot decrease.
+ void change_num_cameras(size_t num_cameras); // Defaults to 2. Cannot decrease.
void emit_data_changed(size_t row) override;
bool is_camera_column(int column) const
private:
std::vector<Clip> clips;
- size_t num_cameras = 1;
+ size_t num_cameras = 2;
};
class PlayList : public QAbstractTableModel, public DataChangedReceiver {
ClipListProto serialize() const;
- void change_num_cameras(size_t num_cameras) // Defaults to 1. Cannot decrease.
+ void change_num_cameras(size_t num_cameras) // Defaults to 2. Cannot decrease.
{
this->num_cameras = num_cameras;
}
int currently_playing_index = -1;
double play_progress = 0.0;
std::map<size_t, double> current_progress;
- size_t num_cameras = 1;
+ size_t num_cameras = 2;
};
#endif // !defined (_CLIP_LIST_H)
this, &MainWindow::clip_list_selection_changed);
// Find out how many cameras we have in the existing frames;
- // if none, we start with a single camera.
- num_cameras = 1;
+ // if none, we start with two cameras.
+ num_cameras = 2;
{
lock_guard<mutex> lock(frame_mu);
- for (size_t stream_idx = 1; stream_idx < MAX_STREAMS; ++stream_idx) {
+ for (size_t stream_idx = 2; stream_idx < MAX_STREAMS; ++stream_idx) {
if (!frames[stream_idx].empty()) {
num_cameras = stream_idx + 1;
}