Merge pull request #15000 from mshabunin:fix-videoio-writer

pull/15004/head
Alexander Alekhin 5 years ago
commit de4d304d90
  1. 3
      modules/videoio/src/backend_plugin.cpp

@ -480,7 +480,8 @@ public:
if (plugin_api->Writer_open) if (plugin_api->Writer_open)
{ {
CV_Assert(plugin_api->Writer_release); 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); CV_Assert(writer);
return makePtr<PluginWriter>(plugin_api, writer); return makePtr<PluginWriter>(plugin_api, writer);

Loading…
Cancel
Save