summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-22 23:49:23 +0200
committerwm4 <wm4@nowhere>2014-07-22 23:49:23 +0200
commit10debffc06d3a4ce923ac1062931f0afdf729824 (patch)
tree00a8822a6b963d55618d346013b89587297236a6 /player/misc.c
parent870dc8483954ea0cb80bee1473b6ae58ae64bdce (diff)
downloadmpv-10debffc06d3a4ce923ac1062931f0afdf729824.tar.bz2
mpv-10debffc06d3a4ce923ac1062931f0afdf729824.tar.xz
player: remove something DVD specific
This is not needed anymore, because demux_disc isolates us from this crap.
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/player/misc.c b/player/misc.c
index e39175a158..e50ea6b143 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -109,14 +109,7 @@ double get_main_demux_pts(struct MPContext *mpctx)
double get_start_time(struct MPContext *mpctx)
{
- struct demuxer *demuxer = mpctx->demuxer;
- if (!demuxer)
- return 0;
- // We reload the demuxer on menu transitions; don't make it use the first
- // timestamp it finds as start PTS.
- if (mpctx->nav_state)
- return 0;
- return demuxer->start_time;
+ return mpctx->demuxer ? mpctx->demuxer->start_time : 0;
}
float mp_get_cache_percent(struct MPContext *mpctx)