[MPlayer-dev-eng] An attempt at libmplayer
Diego Biurrun
diego at biurrun.de
Thu Sep 11 23:45:38 CEST 2008
On Thu, Sep 11, 2008 at 04:13:12PM +0530, Santanu Sinha wrote:
>
> I am attempting to write one based on your 1.0-rc2 source release. I
> updated from svn today and saw many changes. I will try to merge them
> with my code today.
Work with HEAD, everything else will be futile.
> The basic idea is to have a proper set of API's to replace hacks like
> DISABLE_MAIN.
> The steps to do this would be:
> 1) Break up the main function into small blocks.
> 2) Factor out application and back end code.
> 3) Remove globals and replace by local structures.
> 4) Create data structure and API's for clients to easily set up
> different options to mplayer
> 5) Search, analyze and fix re-entrancy issues for the library.
>
> Please note that i will at first try to only breakup the main into
> small functions. Then create library and applications from these
> functions. Then add option editing support and so on.
Refactoring patches are welcome. Please try to keep them small, that
will make integrating them easier.
> --- ../orig/MPlayer-1.0rc2/mp_core.h 2007-10-08 01:19:33.000000000 +0530
> +++ ./mp_core.h 2008-09-11 00:34:47.000000000 +0530
> @@ -1,4 +1,6 @@
> // definitions used internally by the core player code
> +#ifndef _MP_CORE_H
> +#define _MP_CORE_H
That's an illegal identifier, identifiers starting with two underscores
or an underscore and capital letters are reserved for the system.
Diego
More information about the MPlayer-dev-eng
mailing list