mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
code: Revert #836
The compiler will choose the optimal way automatically, and forcing std::move here actually results in two objects existing side by side, before being "moved" into one.
This commit is contained in:
parent
b9d8583d58
commit
4e41c5cf24
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ std::list<device> d3d11::enumerate_adapters()
|
||||||
adapters.push_back(dev);
|
adapters.push_back(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(adapters);
|
return adapters;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<instance> d3d11::create(const device& target)
|
std::shared_ptr<instance> d3d11::create(const device& target)
|
||||||
|
|
|
@ -280,7 +280,7 @@ std::vector<AVPixelFormat> tools::get_software_formats(const AVPixelFormat* list
|
||||||
|
|
||||||
fmts.push_back(AV_PIX_FMT_NONE);
|
fmts.push_back(AV_PIX_FMT_NONE);
|
||||||
|
|
||||||
return std::move(fmts);
|
return fmts;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tools::context_setup_from_obs(const video_output_info* voi, AVCodecContext* context)
|
void tools::context_setup_from_obs(const video_output_info* voi, AVCodecContext* context)
|
||||||
|
|
Loading…
Reference in a new issue