From 5a2825ec35446ae2127c0fb204203cd09738c4ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 2 Apr 2015 23:54:08 +0200 Subject: video: cleanup stereo mode parsing Use OPT_CHOICE_C() instead of the custom parser. The functionality is pretty much equivalent. (On a side note, it seems --video-stereo-mode can't be removed, because it controls whether to "reduce" stereo video to mono, which is also the default. In fact I'm not sure how this should be handled at all.) --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 67ee2bcbca..502b12dd49 100644 --- a/player/video.c +++ b/player/video.c @@ -159,7 +159,7 @@ static void filter_reconfig(struct MPContext *mpctx, if (params.stereo_in != params.stereo_out && params.stereo_in > 0 && params.stereo_out >= 0) { - char *to = MP_STEREO3D_NAME(params.stereo_out); + char *to = (char *)MP_STEREO3D_NAME(params.stereo_out); if (to) { char *args[] = {"in", "auto", "out", to, NULL, NULL}; if (try_filter(mpctx, params, "stereo3d", "stereo3d", args) < 0) -- cgit v1.2.3