diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-15 16:21:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-15 16:21:30 +0100 |
| commit | 1de842ce398d1369845eccb31e44aa21d6edbfb7 (patch) | |
| tree | c1841b731ad0d6902abb3857e836ff9e19b9c357 /src | |
| parent | 4bfeba59854f5097c84b3c58f61b00ea36acae3f (diff) | |
Add some debug for Igor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 446bf1121..dcd2d4389 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -37,6 +37,8 @@ #include "lib/case_insensitive_sorter.h" #include "lib/playlist.h" #include "lib/config.h" +#include "lib/log.h" +#include "lib/compose.hpp" #include <wx/wx.h> #include <wx/notebook.h> #include <wx/listctrl.h> @@ -54,6 +56,8 @@ using boost::weak_ptr; using boost::dynamic_pointer_cast; using boost::optional; +#define LOG_GENERAL(...) _film->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL); + ContentPanel::ContentPanel (wxNotebook* n, boost::shared_ptr<Film> film, FilmViewer* viewer) : _timeline_dialog (0) , _parent (n) @@ -545,6 +549,12 @@ ContentPanel::setup () BOOST_FOREACH (shared_ptr<Content> i, content) { int const t = _content->GetItemCount (); bool const valid = i->paths_valid (); + + /* Temporary debugging for Igor */ + BOOST_FOREACH (boost::filesystem::path j, i->paths()) { + LOG_GENERAL ("Check %1 %2 answer %3", j.string(), boost::filesystem::exists(j) ? "yes" : "no", valid ? "yes" : "no"); + } + shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent> (i); bool const needs_kdm = dcp && dcp->needs_kdm (); bool const needs_assets = dcp && dcp->needs_assets (); |
