From d9cc13f3118acea4314a13b8472f1f37e1c04805 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 May 2019 13:34:42 +0200 Subject: f_decoder_wrapper: move cover art retrieval This is basically a refactor in preparation for future changes and shouldn't have much influence on actual behavior. --- filters/f_decoder_wrapper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c index 0faaa72bd9..0edca5c83d 100644 --- a/filters/f_decoder_wrapper.c +++ b/filters/f_decoder_wrapper.c @@ -580,6 +580,11 @@ static void read_frame(struct priv *p) if (!frame.type) return; + if (p->header->attached_picture && frame.type == MP_FRAME_VIDEO) { + p->decoded_coverart = mp_frame_ref(frame); + p->coverart_returned = 1; + } + if (p->public.attempt_framedrops) { int dropped = MPMAX(0, p->packets_without_output - 1); p->public.attempt_framedrops = @@ -615,11 +620,6 @@ static void read_frame(struct priv *p) return; } - if (p->header->attached_picture && frame.type == MP_FRAME_VIDEO) { - p->decoded_coverart = mp_frame_ref(frame); - p->coverart_returned = 1; - } - mp_pin_in_write(pin, frame); } -- cgit v1.2.3