mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user