Mercurial > mplayer.hg
diff command.c @ 33482:7e41f14e7778
Fix segmentation fault when pressing U (stop playing) in GUI.
The GUI doesn't make use of playtree_iter, so it can't call
the play_tree_iter functions but has to stop in its own way.
author | ib |
---|---|
date | Tue, 07 Jun 2011 13:17:05 +0000 |
parents | 7d13ed4e80f2 |
children | c5a19bbeac2b |
line wrap: on
line diff
--- a/command.c Tue Jun 07 00:08:06 2011 +0000 +++ b/command.c Tue Jun 07 13:17:05 2011 +0000 @@ -2963,6 +2963,12 @@ break; case MP_CMD_STOP: +#ifdef CONFIG_GUI + // playtree_iter isn't used by the GUI + if (use_gui) + mplStop(); + else +#endif // Go back to the starting point. while (play_tree_iter_up_step (mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END)