1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

f_decoder_wrapper: put coverart through image output logic

This wasn't done, probably regression from one of the last dozen of
times this special code path was touched. This meant coverart images
ignored the user-set aspect ratio completely, and some other things.
This commit is contained in:
wm4 2019-11-16 23:21:03 +01:00
parent ba370e9599
commit ba6ba32825

View File

@ -661,11 +661,13 @@ static void read_frame(struct priv *p)
if (p->decoded_coverart.type) {
if (p->coverart_returned == 0) {
mp_pin_in_write(pin, mp_frame_ref(p->decoded_coverart));
frame = mp_frame_ref(p->decoded_coverart);
p->coverart_returned = 1;
goto output_frame;
} else if (p->coverart_returned == 1) {
mp_pin_in_write(pin, MP_EOF_FRAME);
frame = MP_EOF_FRAME;
p->coverart_returned = 2;
goto output_frame;
}
return;
}