Fix a broken unit test.

2011-08-30T04:38:22Z!thonsew@yahoo.com fixed a static initialization problem, but the code
assumed the same object was used. This commit fixes it, also tested by
thonsew ( committer of 2011-08-30T04:38:22Z!thonsew@yahoo.com).
This commit is contained in:
Mark de Wever 2011-08-31 17:43:26 +00:00
parent 7c92001031
commit 29614541f9

View file

@ -132,7 +132,7 @@ namespace {
typedef std::vector<std::pair<unsigned, unsigned> > tresolution_list;
CVideo & video() {
CVideo * v_ = new CVideo(CVideo::FAKE_TEST);
static CVideo * v_ = new CVideo(CVideo::FAKE_TEST);
return *v_;
}