diff options
Diffstat (limited to 'capi/context_priv.cpp')
-rw-r--r-- | capi/context_priv.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/capi/context_priv.cpp b/capi/context_priv.cpp index ecbffa6..2e685c1 100644 --- a/capi/context_priv.cpp +++ b/capi/context_priv.cpp @@ -59,8 +59,9 @@ ContextBase::ContextBase (HandleType type) , _alloc_out_buf (false) { if (!_inbuf_pool.ptr()) { - _inbuf_pool = new CLVideoBufferPool (); - XCAM_ASSERT (_inbuf_pool.ptr ()); + SmartPtr<BufferPool> pool = new CLVideoBufferPool (); + XCAM_ASSERT (pool.ptr ()); + _inbuf_pool = pool; } } @@ -222,10 +223,6 @@ StitchContext::create_handler (SmartPtr<CLContext> &context) image_360->set_output_size (sttch_width, sttch_height); XCAM_LOG_INFO ("stitch output size width:%d height:%d", sttch_width, sttch_height); -#if HAVE_OPENCV - image_360->set_feature_match_ocl (_fm_ocl); -#endif - return image_360; } |