diff options
Diffstat (limited to 'player/misc.c')
-rw-r--r-- | player/misc.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/player/misc.c b/player/misc.c index 3729d7a42c..c86a03608c 100644 --- a/player/misc.c +++ b/player/misc.c @@ -1,18 +1,18 @@ /* * This file is part of mpv. * - * mpv is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * mpv is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * * mpv is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License along - * with mpv. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU Lesser General Public + * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ #include <stddef.h> @@ -45,14 +45,6 @@ #include "core.h" #include "command.h" -double get_relative_time(struct MPContext *mpctx) -{ - int64_t new_time = mp_time_us(); - int64_t delta = new_time - mpctx->last_time; - mpctx->last_time = new_time; - return delta * 0.000001; -} - double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t) { double length = get_time_length(mpctx); |