X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fraw_image_proxy.cc;h=c3b565f3c768ade554b11d622ab6ea1e6896b304;hb=0ff4fa6058b305476e7bc60c590acb6135c49b1c;hp=094b50d058c2bef13cece2d1dbe8df402bce4e21;hpb=9106e6ed551b13e1b7c7ee2088d54ce0ae430bcf;p=dcpomatic.git diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc index 094b50d05..c3b565f3c 100644 --- a/src/lib/raw_image_proxy.cc +++ b/src/lib/raw_image_proxy.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -31,6 +31,8 @@ extern "C" { #include "i18n.h" using std::string; +using std::pair; +using std::make_pair; using boost::shared_ptr; using boost::dynamic_pointer_cast; using boost::optional; @@ -52,10 +54,10 @@ RawImageProxy::RawImageProxy (shared_ptr xml, shared_ptr soc _image->read_from_socket (socket); } -shared_ptr +pair, int> RawImageProxy::image (optional, optional) const { - return _image; + return make_pair (_image, 0); } void @@ -81,7 +83,7 @@ RawImageProxy::same (shared_ptr other) const return false; } - return (*_image.get()) == (*rp->image().get()); + return (*_image.get()) == (*rp->image().first.get()); } AVPixelFormat