[Mplayer-cvslog] CVS: main/Gui/mplayer psignal.c,1.6,1.7 play.c,1.16,1.17 play.h,1.6,1.7
Zoltan Ponekker
pontscho at mplayer.dev.hu
Fri Aug 31 16:16:30 CEST 2001
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv17946/Gui/mplayer
Modified Files:
psignal.c play.c play.h
Log Message:
async reply fix ?
Index: psignal.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/psignal.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- psignal.c 31 Aug 2001 13:05:37 -0000 1.6
+++ psignal.c 31 Aug 2001 14:16:28 -0000 1.7
@@ -168,7 +168,7 @@
if ( s != SIGTYPE ) return;
// #ifdef DEBUG
- if ( gtkShMem->message ) dbprintf( 5,"[psignal] main sig handler gtk msg: %d\n",gtkShMem->message );
+// if ( gtkShMem->message ) dbprintf( 5,"[psignal] main sig handler gtk msg: %d\n",gtkShMem->message );
// if ( mplShMem->message ) dbprintf( 5,"[psignal] main sig handler mpl msg: %d\n",mplShMem->message );
// #endif
@@ -199,9 +199,7 @@
case evLoad: gtkVisibleFileSelect=0; break;
}
break;
- case evSkinBrowser:
- ChangeSkin();
- break;
+ case evSkinBrowser: mplShMem->SkinChange=1; break;
case evFileLoaded:
strcpy( mplShMem->Filename,gtkShMem->fs.dir ); strcat( mplShMem->Filename,"/" ); strcat( mplShMem->Filename,gtkShMem->fs.filename );
if ( mplMainAutoPlay ) mplGeneralTimer=1;
Index: play.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- play.c 31 Aug 2001 12:59:04 -0000 1.16
+++ play.c 31 Aug 2001 14:16:28 -0000 1.17
@@ -205,4 +205,11 @@
mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow );
}
}
+ mplShMem->SkinChange=0;
+}
+
+void EventHandling( void )
+{
+ wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
+ if ( mplShMem->SkinChange ) ChangeSkin();
}
Index: play.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- play.h 31 Aug 2001 13:05:37 -0000 1.6
+++ play.h 31 Aug 2001 14:16:28 -0000 1.7
@@ -47,6 +47,8 @@
int TimeSec;
int LengthInSec;
char Filename[4096];
+
+ int SkinChange;
} mplCommStruct;
extern mplCommStruct * mplShMem;
@@ -82,5 +84,6 @@
extern void mplPlayerThread( void );
extern void ChangeSkin( void );
+extern void EventHandling( void );
#endif
More information about the MPlayer-cvslog
mailing list