[MPlayer-dev-eng] [HACK] fix compilation for menu and gui

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Feb 21 18:36:49 CET 2007


Hello,
On Wed, Feb 21, 2007 at 06:24:07PM +0100, Aurelien Jacobs wrote:
[...]
IMO this should be done in a way that avoids the includes in most
places, e.g. by using void * instead of MPContext * and casting where
needed.


> -extern play_tree_iter_t* playtree_iter;
>  
>  struct list_entry_s {
>    struct list_entry p;
> @@ -60,20 +69,20 @@
>      mp_cmd_t* c;
>  
>  
> -    if(playtree_iter->tree == mpriv->p.current->pt)
> +    if(menu->ctx->playtree_iter->tree == mpriv->p.current->pt)
>        break;

you can avoid most of the changes here by adding near the start of the
function

play_tree_iter_t* playtree_iter = menu->ctx->playtree_iter;

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list