mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-31 02:11:28 +08:00
UI, obs-qsv11: Fix build in VisualStudio 2017
OBS did not build out of the box in VS2017 but it does with these changes. Closes jp9000/obs-studio#902
This commit is contained in:
@@ -658,11 +658,11 @@ try {
|
||||
if (responseCode == 200) {
|
||||
if (!QuickWriteFile(manifestPath, text.data(), text.size()))
|
||||
throw strprintf("Could not write file '%s'",
|
||||
manifestPath);
|
||||
manifestPath.Get());
|
||||
} else {
|
||||
if (!QuickReadFile(manifestPath, text))
|
||||
throw strprintf("Could not read file '%s'",
|
||||
manifestPath);
|
||||
manifestPath.Get());
|
||||
}
|
||||
|
||||
/* ----------------------------------- *
|
||||
@@ -764,7 +764,7 @@ try {
|
||||
QString msg = QTStr("Updater.FailedToLaunch");
|
||||
info(msg, msg);
|
||||
throw strprintf("Can't launch updater '%s': %d",
|
||||
updateFilePath, GetLastError());
|
||||
updateFilePath.Get(), GetLastError());
|
||||
}
|
||||
|
||||
/* force OBS to perform another update check immediately after updating
|
||||
|
||||
@@ -62,6 +62,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <obs-module.h>
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
#include <intrin.h>
|
||||
|
||||
#define do_log(level, format, ...) \
|
||||
blog(level, "[qsv encoder: '%s'] " format, \
|
||||
|
||||
Reference in New Issue
Block a user