修复字幕Y轴偏移修改后设置参数设置失败的BUG

This commit is contained in:
fangxiang 2022-04-11 12:26:01 +08:00
parent f12879faa8
commit edd75d1cc0
1 changed files with 2 additions and 0 deletions

View File

@ -1577,6 +1577,8 @@ export namespace Protocol {
this.rpc_id = rcp_id ?? 0; this.rpc_id = rcp_id ?? 0;
this.command = Protocol.Commands.kRpcSetSubtitle; this.command = Protocol.Commands.kRpcSetSubtitle;
this.subtitle = subtitle ?? new SubtitleEntity(); this.subtitle = subtitle ?? new SubtitleEntity();
this.subtitle.y_offset = parseInt(<any>this.subtitle.y_offset);
} }
} }