[MPlayer-dev-eng] [PATCH] Fix segmentation fault when pressing U (stop playing) in GUI

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jun 6 15:02:21 CEST 2011


On Sun, Jun 05, 2011 at 09:57:06PM +0200, Ingo Brückl wrote:
> See subject.

More robust code would be for the condition that causes
the crash and return "not available" or whatever the
appropriate return value is.

> +#ifdef CONFIG_GUI
> +        // playtree_iter isn't used by the GUI
> +        if (!use_gui)
> +#endif
>          play_tree_iter_free(mpctx->playtree_iter);

And here I guess play_tree_iter_free simply should support NULL.


More information about the MPlayer-dev-eng mailing list