summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-01 21:32:01 +0100
committerwm4 <wm4@nowhere>2016-02-01 22:03:04 +0100
commitab318aeea84f51fa0adcfb09a8a43abc67dae1cd (patch)
tree1c734ae196b8148f35cb65d30596339cadf8e575 /player/video.c
parent07d8a0e142a6f97c39abbf85acbe4adc90c360b1 (diff)
downloadmpv-ab318aeea84f51fa0adcfb09a8a43abc67dae1cd.tar.bz2
mpv-ab318aeea84f51fa0adcfb09a8a43abc67dae1cd.tar.xz
audio/video: merge decoder return values
Will be helpful for the coming filter support. I planned on merging audio/video decoding, but this will have to wait a bit longer, so only remove the duplicate status codes.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index eb506b21e9..bb339503d7 100644
--- a/player/video.c
+++ b/player/video.c
@@ -456,8 +456,8 @@ static int decode_image(struct MPContext *mpctx)
assert(!vo_c->input_mpi);
int st = video_get_frame(d_video, &vo_c->input_mpi);
switch (st) {
- case VIDEO_WAIT: return VD_WAIT;
- case VIDEO_EOF: return VD_EOF;
+ case DATA_WAIT: return VD_WAIT;
+ case DATA_EOF: return VD_EOF;
default: return VD_PROGRESS;
}
}