diff --git a/player/lua/stats.lua b/player/lua/stats.lua index b3e2320ac2..e76c496668 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -472,9 +472,6 @@ local function add_file(s) append_property(s, "media-title", {prefix="Title:"}) end - local fs = append_property(s, "file-size", {prefix="Size:"}) - append_property(s, "file-format", {prefix="Format/Protocol:", nl=fs and "" or o.nl}) - local editions = mp.get_property_number("editions") local edition = mp.get_property_number("current-edition") local ed_cond = (edition and editions > 1) @@ -495,6 +492,9 @@ local function add_file(s) indent=" ", prefix_sep=" ", no_prefix_markup=true}) end + local fs = append_property(s, "file-size", {prefix="Size:"}) + append_property(s, "file-format", {prefix="Format/Protocol:", nl=fs and "" or o.nl}) + local demuxer_cache = mp.get_property_native("demuxer-cache-state", {}) if demuxer_cache["fw-bytes"] then demuxer_cache = demuxer_cache["fw-bytes"] -- returns bytes