core: move most mpcommon.c contents to mplayer.c
commit43b1de1dd72a9c2f98b3419626c81c58bbc3cf64
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 11 Jan 2011 23:37:02 +0000 (12 01:37 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 15 Jan 2011 16:45:43 +0000 (15 18:45 +0200)
tree6a6543405f2334de86843a200e22a5761fb95d15
parenta1692437d0a2cc88a2b3440bbcfb5e6f66cfd90e
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.
command.c
find_sub.c
mp_core.h
mpcommon.c
mpcommon.h
mplayer.c
mplayer.h