1
mirror of https://github.com/mpv-player/mpv synced 2024-10-02 16:25:33 +02:00

tv: simplify ifdeffery

Too ugly to leave it be.
This commit is contained in:
wm4 2013-10-17 23:13:55 +02:00
parent af0306d48d
commit fbd932410a

View File

@ -473,16 +473,10 @@ static int open_tv(tvi_handle_t *tvh)
/* set some params got from cmdline */
funcs->control(tvh->priv, TVI_CONTROL_SPC_SET_INPUT, &tvh->tv_param->input);
#if defined(CONFIG_TV_V4L2)
if (0
#ifdef CONFIG_TV_V4L2
|| (!strcmp(tvh->tv_param->driver, "v4l2") && tvh->tv_param->normid >= 0)
#endif
)
if ((!strcmp(tvh->tv_param->driver, "v4l2") && tvh->tv_param->normid >= 0))
tv_set_norm_i(tvh, tvh->tv_param->normid);
else
#endif
tv_set_norm(tvh,tvh->tv_param->norm);
tv_set_norm(tvh,tvh->tv_param->norm);
/* limits on w&h are norm-dependent -- JM */
if (tvh->tv_param->width != -1 && tvh->tv_param->height != -1) {