mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
videoio: fix isOpened() method for legacy APIs, fix "index" API list
This commit is contained in:
parent
133e9f2012
commit
ddba772297
@ -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…
Reference in New Issue
Block a user