aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-19 07:56:49 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-19 07:56:49 +0100
commit06c8ec27f61a6958cb4eb32b18d24bc5686e6c8e (patch)
treef4fe1fb2e1b34a6f326bbe041777285dbd45fb22
parente277fadd60350caad1fc31e92a5076692e61dcc9 (diff)
player: also log if completely prefetched URL is discarded
Seems like quite an important/interesting case?
-rw-r--r--player/loadfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 8023428e75..daccfed7c4 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -879,8 +879,11 @@ static void open_demux_reentrant(struct MPContext *mpctx)
MP_VERBOSE(mpctx, "Prefetched URL failed, retrying.\n");
cancel_open(mpctx);
} else {
- if (!done)
+ if (done) {
+ MP_VERBOSE(mpctx, "Dropping finished prefetch of wrong URL.\n");
+ } else {
MP_VERBOSE(mpctx, "Aborting onging prefetch of wrong URL.\n");
+ }
cancel_open(mpctx);
}
}