diff --git src/io/cxx/CodecRegistry.cc src/io/cxx/CodecRegistry.cc
index 8e32d76..1663611 100644
|
|
|
25 | 25 | #include <boost/filesystem.hpp> |
26 | 26 | #include <boost/format.hpp> |
27 | 27 | |
| 28 | #include "bob/core/logging.h" |
28 | 29 | #include "bob/io/CodecRegistry.h" |
29 | 30 | |
30 | 31 | #include<iostream> |
… |
… |
void io::CodecRegistry::registerExtension(const std::string& extension, |
68 | 69 | s_extension2description[extension] = description; |
69 | 70 | } |
70 | 71 | else { |
71 | | boost::format m("extension already registered: %s"); |
72 | | m % extension; |
| 72 | boost::format m("extension already registered: %s - ignoring second registration with description `%s'"); |
| 73 | m % extension % description; |
| 74 | bob::core::error << m.str() << std::endl; |
73 | 75 | throw std::runtime_error(m.str()); |
74 | 76 | } |
75 | 77 | |
diff --git src/io/cxx/VideoFile.cc src/io/cxx/VideoFile.cc
index 3033132..de04728 100644
|
|
static bool register_codec() { |
260 | 260 | static std::string tmp[] = { |
261 | 261 | ".bmp", |
262 | 262 | ".dpx", |
| 263 | ".gif", |
263 | 264 | ".jpeg", |
264 | 265 | ".jpg", |
265 | 266 | ".jp2", |