1 parent fdab776 commit ee3895fCopy full SHA for ee3895f
1 file changed
src/ccap_imp_windows.cpp
@@ -681,7 +681,7 @@ bool ProviderDirectShow::open(std::string_view deviceName) {
681
});
682
683
if (!found) {
684
- reportError(ErrorCode::InvalidDevice, "ccap: No video capture device: " + (deviceName.empty() ? unavailableMsg : deviceName));
+ reportError(ErrorCode::InvalidDevice, "ccap: No video capture device: " + std::string(deviceName.empty() ? unavailableMsg : deviceName));
685
return false;
686
}
687
0 commit comments