From 96b906a51d5cb42b5e8f90d83259ca0b3bfb2485 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Jun 2017 15:13:47 +0200 Subject: player: disable video equalizer frontend code for WIP LGPL mode Nick and kiriuja could not be reached, and created/changed this in 92c5c274, 6441a5ad, bffd4007, 555c6766, c2c997fd. The video equalizer stuff was redone fully later, but there are still parts that look too similar and basically use the same approach. I'm more comfortable with declaring it GPL only for now. I plan to redo them later in a way that will remove copyright. --- player/video.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 20229a9267..62ed473dd4 100644 --- a/player/video.c +++ b/player/video.c @@ -68,6 +68,7 @@ static const char av_desync_help_text[] = "position will not match to the video (see A-V status field).\n" "\n"; +#if HAVE_GPL int video_set_colors(struct vo_chain *vo_c, const char *item, int value) { vf_equalizer_t data; @@ -96,6 +97,7 @@ int video_get_colors(struct vo_chain *vo_c, const char *item, int *value) } return 0; } +#endif // Send a VCTRL, or if it doesn't work, translate it to a VOCTRL and try the VO. int video_vf_vo_control(struct vo_chain *vo_c, int vf_cmd, void *data) @@ -992,6 +994,7 @@ static void init_vo(struct MPContext *mpctx) struct MPOpts *opts = mpctx->opts; struct vo_chain *vo_c = mpctx->vo_chain; +#if HAVE_GPL if (opts->gamma_gamma != 0) video_set_colors(vo_c, "gamma", opts->gamma_gamma); if (opts->gamma_brightness != 0) @@ -1003,6 +1006,7 @@ static void init_vo(struct MPContext *mpctx) if (opts->gamma_hue != 0) video_set_colors(vo_c, "hue", opts->gamma_hue); video_set_colors(vo_c, "output-levels", opts->video_output_levels); +#endif mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); } -- cgit v1.2.3