#include "../../../common/utility/find_file.h"\r
#include "../../server.h"\r
#include "../../../common/concurrency/executor.h"\r
-#include "../../../common/concurrency/function_task.h"\r
#include "../../../common/utility/memory.h"\r
#include "../../../common/utility/scope_exit.h"\r
\r
~implementation() \r
{\r
stop();\r
+ if(factory_)\r
+ factory_->release_frames(this);\r
}\r
\r
void start(bool force = true)\r
});\r
} \r
\r
- auto frame = factory_->create_frame(format_desc_);\r
- common::aligned_memcpy(frame->data(), current_frame_->data(), current_frame_->size()); \r
+ auto frame = factory_->create_frame(format_desc_, this);\r
+ common::aligned_parallel_memcpy(frame->data(), current_frame_->data(), current_frame_->size()); \r
\r
return frame;\r
}\r