sub: Add SD_CTRL_UPDATE_SPEED

This commit is contained in:
Vladimir Panteleev 2016-09-13 01:15:14 +00:00 committed by wm4
parent 60a0815b4c
commit 08cbac311d
2 changed files with 4 additions and 0 deletions

View File

@ -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 {

View File

@ -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;
}