Skip to content

Commit

Permalink
設定ファイルのデフォルト値がドキュメントと異なっていたので修正(gid, vaapiDevice)
Browse files Browse the repository at this point in the history
  • Loading branch information
koniyan committed Mar 29, 2017
1 parent 8059490 commit ff25a7f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/script-channel-watch.vm.js
Expand Up @@ -68,7 +68,7 @@ Usushio では使わない
if (!request.query.debug) args.push('-v', '0');

if (config.vaapiEnabled === true) {
args.push("-vaapi_device", config.vaapiDevice);
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128');
args.push("-hwaccel", "vaapi");
args.push("-hwaccel_output_format", "yuv420p");
}
Expand Down
2 changes: 1 addition & 1 deletion api/script-recorded-program-watch.vm.js
Expand Up @@ -185,7 +185,7 @@ function main(avinfo) {
if (!request.query.debug) args.push('-v', '0');

if (config.vaapiEnabled === true) {
args.push("-vaapi_device", config.vaapiDevice);
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128');
args.push("-hwaccel", "vaapi");
args.push("-hwaccel_output_format", "yuv420p");
}
Expand Down
2 changes: 1 addition & 1 deletion api/script-recording-program-watch.vm.js
Expand Up @@ -75,7 +75,7 @@
if (!request.query.debug) args.push('-v', '0');

if (config.vaapiEnabled === true) {
args.push("-vaapi_device", config.vaapiDevice);
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128');
args.push("-hwaccel", "vaapi");
args.push("-hwaccel_output_format", "yuv420p");
}
Expand Down
4 changes: 3 additions & 1 deletion app-operator.js
Expand Up @@ -73,6 +73,8 @@ if (process.platform !== "win32") {
if (process.getuid() === 0) {
if (typeof config.gid === "string" || typeof config.gid === "number") {
process.setgid(config.gid);
} else {
process.setgid('video');
}
if (typeof config.uid === "string" || typeof config.uid === "number") {
process.setuid(config.uid);
Expand Down Expand Up @@ -583,4 +585,4 @@ chinachu.jsonWatcher(
});
},
{ create: [], now: false }
);
);
2 changes: 2 additions & 0 deletions app-wui.js
Expand Up @@ -79,6 +79,8 @@ if (process.platform !== "win32") {
if (process.getuid() === 0) {
if (typeof config.gid === "string" || typeof config.gid === "number") {
process.setgid(config.gid);
} else {
process.setgid('video');
}
if (typeof config.uid === "string" || typeof config.uid === "number") {
process.setuid(config.uid);
Expand Down

0 comments on commit ff25a7f

Please sign in to comment.