# HG changeset patch # User ib # Date 1310298685 0 # Node ID 474ffcdcc6e7c8e15eb4c2384f197871da9691b5 # Parent a3983d2c9106159b76e1e8cdfd4c0280afdeab0e Change guiInterface_t void pointer member declarations. Declare the members with their appropriate types. Additionally, remove needless cast then and remove unnecessary #ifdef CONFIG_DVDREAD. diff -r a3983d2c9106 -r 474ffcdcc6e7 gui/interface.c --- a/gui/interface.c Sun Jul 10 11:21:40 2011 +0000 +++ b/gui/interface.c Sun Jul 10 11:51:25 2011 +0000 @@ -45,7 +45,6 @@ #include "libvo/video_out.h" #include "libvo/x11_common.h" #include "mixer.h" -#include "mp_core.h" #include "mp_msg.h" #include "mpcommon.h" #include "mplayer.h" diff -r a3983d2c9106 -r 474ffcdcc6e7 gui/interface.h --- a/gui/interface.h Sun Jul 10 11:21:40 2011 +0000 +++ b/gui/interface.h Sun Jul 10 11:51:25 2011 +0000 @@ -20,7 +20,10 @@ #define MPLAYER_GUI_INTERFACE_H #include "config.h" +#include "libaf/af.h" +#include "libmpdemux/stheader.h" #include "m_config.h" +#include "mp_core.h" #include "playtree.h" #include "stream/stream.h" @@ -76,7 +79,6 @@ MPLAYER_SET_SUB_ENCODING }; -#ifdef CONFIG_DVDREAD typedef struct { int titles; int chapters; @@ -89,12 +91,11 @@ int nr_of_subtitles; stream_language_t subtitles[32]; } guiDVDStruct; -#endif typedef struct { - struct MPContext *mpcontext; - void *sh_video; - void *afilter; + MPContext *mpcontext; + sh_video_t *sh_video; + af_stream_t *afilter; int DiskChanged; int NewPlay; diff -r a3983d2c9106 -r 474ffcdcc6e7 gui/ui/render.c --- a/gui/ui/render.c Sun Jul 10 11:21:40 2011 +0000 +++ b/gui/ui/render.c Sun Jul 10 11:51:25 2011 +0000 @@ -220,7 +220,7 @@ break; case 'C': - snprintf(tmp, sizeof(tmp), "%s", guiInfo.sh_video ? ((sh_video_t *)guiInfo.sh_video)->codec->name : ""); + snprintf(tmp, sizeof(tmp), "%s", guiInfo.sh_video ? guiInfo.sh_video->codec->name : ""); av_strlcat(trbuf, tmp, sizeof(trbuf)); break;