From 6a1837228d90b49bba78c8822b989463fb4dfb0d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 14 Feb 2019 16:07:10 +0000 Subject: [PATCH] swaroop: add some debugging. --- src/wx/swaroop_controls.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc index abf6fc58c..8cd3b1d5b 100644 --- a/src/wx/swaroop_controls.cc +++ b/src/wx/swaroop_controls.cc @@ -125,8 +125,10 @@ SwaroopControls::SwaroopControls (wxWindow* parent, shared_ptr viewe void SwaroopControls::check_restart () { + cout << "check_restart called\n"; FILE* f = fopen_boost (Config::path("position"), "r"); if (!f) { + cout << "could not open position file (" << errno << ")\n"; return; } @@ -135,8 +137,11 @@ SwaroopControls::check_restart () int64_t time; fscanf (f, "%63s %d %ld", id, &index, &time); + cout << "Looking for playlist " << id << " to restart.\n"; + for (size_t i = 0; i < _playlists.size(); ++i) { if (_playlists[i].id() == id) { + cout << "Found playlist " << id << "\n"; select_playlist (i, index); update_current_content (); _viewer->seek (DCPTime(time), false); -- 2.30.2