summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 8360b9069f..f6c7679220 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -3078,6 +3078,9 @@ void demux_update(demuxer_t *demuxer, double pts)
if (!in->threading)
update_cache(in);
+ // This implies this function is actually called from "the" user thread.
+ in->d_user->filesize = in->stream_size;
+
pts = MP_ADD_PTS(pts, -in->ts_offset);
struct timed_metadata *prev = lookup_timed_metadata(in, in->last_playback_pts);