OIIO: added support for OIIO 1.x
OIIO 2.x uses std::unique_ptr while 1.x uses raw pointers. Olive can now handle both, manually destroying the raw pointers when necessary if running on OIIO 1.x.
This commit is contained in:
@@ -211,6 +211,10 @@ const char *VideoRenderBackend::GetCachedFrame(const rational &time)
|
||||
|
||||
in->close();
|
||||
|
||||
#if OIIO_VERSION < 10903
|
||||
OIIO::ImageInput::destroy(in);
|
||||
#endif
|
||||
|
||||
return cache_frame_load_buffer_.constData();
|
||||
} else {
|
||||
qWarning() << "OIIO Error:" << OIIO::geterror().c_str();
|
||||
|
||||
Reference in New Issue
Block a user