summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-17 23:13:55 +0200
committerwm4 <wm4@nowhere>2013-10-17 23:13:55 +0200
commitfbd932410adc04a58d28799919d3fdd56492d6e7 (patch)
treea0bc718b6e92aa142c7d5d9776f8c043fb87d390 /stream
parentaf0306d48d5410c7f1d12f03a4e791b8144dbecb (diff)
downloadmpv-fbd932410adc04a58d28799919d3fdd56492d6e7.tar.bz2
mpv-fbd932410adc04a58d28799919d3fdd56492d6e7.tar.xz
tv: simplify ifdeffery
Too ugly to leave it be.
Diffstat (limited to 'stream')
-rw-r--r--stream/tv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 3b1a8a2cfc..43a516e202 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -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) {