From 85450d06a1b1a08fce277f7f14d5ee33b12f8eab Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Nov 2015 23:15:59 +0100 Subject: player: use demuxer ts offset to simplify timeline ts handling Use the demux_set_ts_offset() added in the previous commit to base each timeline segment to use timestamps according to its relative position within the overall timeline. As a consequence we don't need to care about these timestamps anymore, and everything becomes simpler. (Another minor but delicious nugget of sanity.) --- player/misc.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'player/misc.c') diff --git a/player/misc.c b/player/misc.c index 0a3479590d..db3dd0402f 100644 --- a/player/misc.c +++ b/player/misc.c @@ -115,14 +115,6 @@ double get_main_demux_pts(struct MPContext *mpctx) return main_new_pos; } -// Get the offset from the given track to the video. -double get_track_video_offset(struct MPContext *mpctx, struct track *track) -{ - if (track && track->under_timeline) - return mpctx->video_offset; - return 0; -} - float mp_get_cache_percent(struct MPContext *mpctx) { if (mpctx->demuxer) { -- cgit v1.2.3