mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
vd_lavc: move end-of-probing code out of user notification if condition
Usually they happen at the same time, but conflating them is still a bit unclean and could possibly cause problems in the future. It's also really unnecessary.
This commit is contained in:
parent
ee66efeb99
commit
c2c065913b
@ -783,11 +783,13 @@ static struct mp_image *read_output(struct dec_video *vd, bool eof)
|
||||
MP_INFO(vd, "Using software decoding.\n");
|
||||
}
|
||||
ctx->hwdec_notified = true;
|
||||
}
|
||||
|
||||
ctx->hw_probing = false;
|
||||
if (ctx->hw_probing) {
|
||||
for (int n = 0; n < ctx->num_sent_packets; n++)
|
||||
talloc_free(ctx->sent_packets[n]);
|
||||
ctx->num_sent_packets = 0;
|
||||
ctx->hw_probing = false;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user