summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-02 23:54:08 +0200
committerwm4 <wm4@nowhere>2015-04-02 23:54:08 +0200
commit5a2825ec35446ae2127c0fb204203cd09738c4ed (patch)
tree90e24f12b16912e1ce2894f28839e716653066d2 /player/video.c
parent19f56e20979d1dbbb4b9956c955d4d0fa27516aa (diff)
downloadmpv-5a2825ec35446ae2127c0fb204203cd09738c4ed.tar.bz2
mpv-5a2825ec35446ae2127c0fb204203cd09738c4ed.tar.xz
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.)
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
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)