mirror of
https://github.com/opencv/opencv.git
synced 2025-07-20 19:17:36 +08:00
Fixed video writer filename check for plugins
This commit is contained in:
parent
d7744aca02
commit
693877212d
@ -480,7 +480,8 @@ public:
|
||||
if (plugin_api->Writer_open)
|
||||
{
|
||||
CV_Assert(plugin_api->Writer_release);
|
||||
if (CV_ERROR_OK == plugin_api->Writer_open(filename.empty() ? 0 : filename.c_str(), fourcc, fps, sz.width, sz.height, isColor, &writer))
|
||||
CV_Assert(!filename.empty());
|
||||
if (CV_ERROR_OK == plugin_api->Writer_open(filename.c_str(), fourcc, fps, sz.width, sz.height, isColor, &writer))
|
||||
{
|
||||
CV_Assert(writer);
|
||||
return makePtr<PluginWriter>(plugin_api, writer);
|
||||
|
Loading…
Reference in New Issue
Block a user