From b298140b07842bd3573866564ad30ddfef65638c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 7 Sep 2018 21:58:46 +0200 Subject: demux: return stream file size differently, rip out stream ctrls The stream size return was the only thing that still required doing STREAM_CTRLs from frontend through the demuxer layer. This can be done much easier, so rip it out. Also rip out the now unused infrastructure for STREAM_CTRLs via demuxer layer. --- player/command.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index dacdbed3f8..3621fae90c 100644 --- a/player/command.c +++ b/player/command.c @@ -557,9 +557,7 @@ static int mp_property_file_size(void *ctx, struct m_property *prop, if (!mpctx->demuxer) return M_PROPERTY_UNAVAILABLE; - int64_t size; - if (demux_stream_control(mpctx->demuxer, STREAM_CTRL_GET_SIZE, &size) < 1) - return M_PROPERTY_UNAVAILABLE; + int64_t size = mpctx->demuxer->filesize; if (action == M_PROPERTY_PRINT) { *(char **)arg = format_file_size(size); -- cgit v1.2.3