[MPlayer-cvslog] r33773 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Wed Jun 29 12:49:43 CEST 2011
Author: ib
Date: Wed Jun 29 12:49:43 2011
New Revision: 33773
Log:
Make assignments to variables in guiGetEvent() only if needed.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Wed Jun 29 12:48:55 2011 (r33772)
+++ trunk/gui/interface.c Wed Jun 29 12:49:43 2011 (r33773)
@@ -552,11 +552,9 @@ static void add_vf(char *str)
int guiGetEvent(int type, void *arg)
{
mixer_t *mixer = NULL;
-
- stream_t *stream = arg;
-
+ stream_t *stream;
#ifdef CONFIG_DVDREAD
- dvd_priv_t *dvdp = arg;
+ dvd_priv_t *dvdp;
#endif
if (guiInfo.mpcontext)
@@ -640,6 +638,7 @@ int guiGetEvent(int type, void *arg)
#ifdef CONFIG_DVDREAD
case guiSetDVD:
+ dvdp = arg;
guiInfo.DVD.titles = dvdp->vmg_file->tt_srpt->nr_of_srpts;
guiInfo.DVD.chapters = dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_ptts;
guiInfo.DVD.angles = dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_angles;
@@ -656,6 +655,7 @@ int guiGetEvent(int type, void *arg)
case guiSetStream:
+ stream = arg;
guiInfo.StreamType = stream->type;
switch (stream->type) {
More information about the MPlayer-cvslog
mailing list