Skip to content

Commit

Permalink
driver: fix camera weak_ptr issue:
Browse files Browse the repository at this point in the history
  • Loading branch information
GoLancer authored and Jiangtao Hu committed Dec 13, 2018
1 parent 0c55b3a commit 2209816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/drivers/camera/compress_component.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CompressComponent : public Component<Image> {
bool Proc(const std::shared_ptr<Image>& image) override;

private:
std::unique_ptr<CCObjectPool<CompressedImage>> image_pool_;
std::shared_ptr<CCObjectPool<CompressedImage>> image_pool_;
std::shared_ptr<Writer<CompressedImage>> writer_ = nullptr;
Config config_;
};
Expand Down

0 comments on commit 2209816

Please sign in to comment.