summaryrefslogtreecommitdiffstats
path: root/filters/f_decoder_wrapper.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-02 22:37:14 +0100
committerwm4 <wm4@nowhere>2019-11-02 22:37:14 +0100
commit1bb726dedce9ab0cd096bd524e869cf1899697cf (patch)
tree2ae313eef14f78938d9d40e2e29fc339dccb7e62 /filters/f_decoder_wrapper.c
parentdab588a4a255c7a30ef84ecacc92fe8815e402ee (diff)
downloadmpv-1bb726dedce9ab0cd096bd524e869cf1899697cf.tar.bz2
mpv-1bb726dedce9ab0cd096bd524e869cf1899697cf.tar.xz
vd_lavc: simplify fallback handling for full stream hw decoder
Shovel the code around to make the data flow slightly simpler (?). At least there's only one send_packet function now. The old code had the problem that send_packet() could be called even if there were queued packets; due to sending the queued packets in the receive_frame function, this should not happen anymore (the code checking for this case in send_packet should normally never be called). Untested with actual full stream hw decoders (none available here); I created a test case by making hwaccel decoding fail.
Diffstat (limited to 'filters/f_decoder_wrapper.c')
-rw-r--r--filters/f_decoder_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c
index 846a0912ed..0462bf2424 100644
--- a/filters/f_decoder_wrapper.c
+++ b/filters/f_decoder_wrapper.c
@@ -856,7 +856,7 @@ void lavc_process(struct mp_filter *f, struct lavc_state *state,
talloc_free(pkt);
mp_filter_internal_mark_progress(f);
} else {
- // Decoding error? Just try again.
+ // Decoding error, or hwdec fallback recovery. Just try again.
mp_filter_internal_mark_progress(f);
}
}