mirror of https://github.com/mpv-player/mpv
sub: Add SD_CTRL_UPDATE_SPEED
This commit is contained in:
parent
60a0815b4c
commit
08cbac311d
|
@ -19,6 +19,7 @@ enum sd_ctrl {
|
|||
SD_CTRL_GET_RESOLUTION,
|
||||
SD_CTRL_SET_TOP,
|
||||
SD_CTRL_SET_VIDEO_DEF_FPS,
|
||||
SD_CTRL_UPDATE_SPEED,
|
||||
};
|
||||
|
||||
struct attachment_list {
|
||||
|
|
|
@ -671,6 +671,9 @@ static int control(struct sd *sd, enum sd_ctrl cmd, void *arg)
|
|||
ctx->video_fps = *(double *)arg;
|
||||
update_subtitle_speed(sd);
|
||||
return CONTROL_OK;
|
||||
case SD_CTRL_UPDATE_SPEED:
|
||||
update_subtitle_speed(sd);
|
||||
return CONTROL_OK;
|
||||
default:
|
||||
return CONTROL_UNKNOWN;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue