diff options
author | wm4 <wm4@nowhere> | 2013-05-04 01:02:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-06 23:11:11 +0200 |
commit | 5148f9f5cca6a5a28bb98a3b713f27614538815f (patch) | |
tree | f861652cbe04412b92886beea838c0cfc5725899 /demux/demux.c | |
parent | 885c6a2610619ad3ee2b01ae7ec7670f8551d388 (diff) | |
download | mpv-5148f9f5cca6a5a28bb98a3b713f27614538815f.tar.bz2 mpv-5148f9f5cca6a5a28bb98a3b713f27614538815f.tar.xz |
demux: remove retrieval of chapter end time
The frontend doesn't use this.
Also use double for returning the chapter times. Everything uses double
for times, and there's no reason to use float here.
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demux/demux.c b/demux/demux.c index e16933e729..94f54fcbfd 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -1365,12 +1365,10 @@ char *demuxer_chapter_name(demuxer_t *demuxer, int chapter) return NULL; } -float demuxer_chapter_time(demuxer_t *demuxer, int chapter, float *end) +double demuxer_chapter_time(demuxer_t *demuxer, int chapter) { if (demuxer->num_chapters && demuxer->chapters && chapter >= 0 && chapter < demuxer->num_chapters) { - if (end) - *end = demuxer->chapters[chapter].end / 1e9; return demuxer->chapters[chapter].start / 1e9; } return -1.0; |