From 559a400ac36e75a8d73ba263fd7fa6736df1c2da Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 31 Aug 2018 12:48:36 +0200 Subject: demux, stream: rip out the classic stream cache The demuxer cache is the only cache now. Might need another change to combat seeking failures in mp4 etc. The only bad thing is the loss of cache-speed, which was sort of nice to have. --- player/misc.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'player/misc.c') diff --git a/player/misc.c b/player/misc.c index f2e6f05173..ce353b9590 100644 --- a/player/misc.c +++ b/player/misc.c @@ -203,24 +203,6 @@ void issue_refresh_seek(struct MPContext *mpctx, enum seek_precision min_prec) queue_seek(mpctx, MPSEEK_ABSOLUTE, get_current_time(mpctx), min_prec, 0); } -float mp_get_cache_percent(struct MPContext *mpctx) -{ - struct stream_cache_info info = {0}; - if (mpctx->demuxer) - demux_stream_control(mpctx->demuxer, STREAM_CTRL_GET_CACHE_INFO, &info); - if (info.size > 0 && info.fill >= 0) - return info.fill / (info.size / 100.0); - return -1; -} - -bool mp_get_cache_idle(struct MPContext *mpctx) -{ - struct stream_cache_info info = {0}; - if (mpctx->demuxer) - demux_stream_control(mpctx->demuxer, STREAM_CTRL_GET_CACHE_INFO, &info); - return info.idle; -} - void update_vo_playback_state(struct MPContext *mpctx) { if (mpctx->video_out && mpctx->video_out->config_ok) { -- cgit v1.2.3