mirror of
https://github.com/mpv-player/mpv
synced 2025-02-11 01:17:28 +00:00
player/playloop: remove now unused get_percent_pos()
This commit is contained in:
parent
37127276cc
commit
d70a0b4494
@ -591,7 +591,6 @@ double get_time_length(struct MPContext *mpctx);
|
||||
double get_start_time(struct MPContext *mpctx, int dir);
|
||||
double get_current_time(struct MPContext *mpctx);
|
||||
double get_playback_time(struct MPContext *mpctx);
|
||||
int get_percent_pos(struct MPContext *mpctx);
|
||||
double get_current_pos_ratio(struct MPContext *mpctx, bool use_range);
|
||||
int get_current_chapter(struct MPContext *mpctx);
|
||||
char *chapter_display_name(struct MPContext *mpctx, int chapter);
|
||||
|
@ -570,13 +570,6 @@ double get_current_pos_ratio(struct MPContext *mpctx, bool use_range)
|
||||
return ans;
|
||||
}
|
||||
|
||||
// 0-100, -1 if unknown
|
||||
int get_percent_pos(struct MPContext *mpctx)
|
||||
{
|
||||
double pos = get_current_pos_ratio(mpctx, false);
|
||||
return pos < 0 ? -1 : (int)round(pos * 100);
|
||||
}
|
||||
|
||||
// -2 is no chapters, -1 is before first chapter
|
||||
int get_current_chapter(struct MPContext *mpctx)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user