videoio: fix isOpened() method for legacy APIs, fix "index" API list

pull/11632/head
Alexander Alekhin 7 years ago
parent 133e9f2012
commit ddba772297
  1. 2
      modules/videoio/src/cap.cpp
  2. 2
      modules/videoio/src/videoio_registry.cpp

@ -169,7 +169,7 @@ bool VideoCapture::isOpened() const
{
if (!icap.empty())
return icap->isOpened();
return !icap.empty(); // legacy interface doesn't support closed files
return !cap.empty(); // legacy interface doesn't support closed files
}
void VideoCapture::release()

@ -288,7 +288,7 @@ namespace videoio_registry {
std::vector<VideoBackendInfo> getAvailableBackends_CaptureByIndex()
{
const std::vector<VideoBackendInfo> result = VideoBackendRegistry::getInstance().getAvailableBackends_CaptureByFilename();
const std::vector<VideoBackendInfo> result = VideoBackendRegistry::getInstance().getAvailableBackends_CaptureByIndex();
return result;
}
std::vector<VideoBackendInfo> getAvailableBackends_CaptureByFilename()

Loading…
Cancel
Save