From 43b1de1dd72a9c2f98b3419626c81c58bbc3cf64 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 12 Jan 2011 01:37:02 +0200 Subject: core: move most mpcommon.c contents to mplayer.c The contents of mpcommon.c were quite arbitrary; the most common reason to place some functions in this file had been "MEncoder happens to need similar code as MPlayer and we want to share some parts, but we have no clue whatsoever how to organize things in a sensible way, so we'll just dump those parts we want to share in mpcommon.c". As a result of containing an essentially random subset of top-level player functionality the mpcommon.h header required access to central structs and was unsuitable for inclusion in lower-level code, but was nonetheless included there for the mplayer_version symbol. Move almost all contents from mpcommon.c to mplayer.c. mplayer.c is already big and should perhaps be split further, but keeping a few random functions in mpcommon.c would not be an improvement. --- mp_core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mp_core.h') diff --git a/mp_core.h b/mp_core.h index f8b286e5b9..51337b4ee1 100644 --- a/mp_core.h +++ b/mp_core.h @@ -246,5 +246,7 @@ double get_current_time(struct MPContext *mpctx); int get_percent_pos(struct MPContext *mpctx); int get_current_chapter(struct MPContext *mpctx); char *chapter_display_name(struct MPContext *mpctx, int chapter); +void update_subtitles(struct MPContext *mpctx, double refpts, + double sub_offset, bool reset); #endif /* MPLAYER_MP_CORE_H */ -- cgit v1.2.3