Mercurial > mplayer.hg
changeset 1813:c68e82514f56
add filenamechanged
author | pontscho |
---|---|
date | Fri, 31 Aug 2001 21:23:55 +0000 |
parents | d2d6a26ddb02 |
children | 9c674dc76ff3 |
files | Gui/mplayer/play.h Gui/mplayer/psignal.c |
diffstat | 2 files changed, 3 insertions(+), 45 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/play.h Fri Aug 31 21:19:52 2001 +0000 +++ b/Gui/mplayer/play.h Fri Aug 31 21:23:55 2001 +0000 @@ -46,7 +46,9 @@ int StreamType; int TimeSec; int LengthInSec; + char Filename[4096]; + int FilenameChanged; int SkinChange; } mplCommStruct;
--- a/Gui/mplayer/psignal.c Fri Aug 31 21:19:52 2001 +0000 +++ b/Gui/mplayer/psignal.c Fri Aug 31 21:23:55 2001 +0000 @@ -47,51 +47,6 @@ gtkMessageBox( p ); } -/* -void mplPlayerSigHandler( int s ) -{ - #ifdef DEBUG - dbprintf( 5,"[psignal] mpl sig handler msg: %d\n",mplShMem->message ); - #endif - if ( s != SIGTYPE ) return; - switch ( mplShMem->message ) - { - case mplQuit: - exit_player( "GUI close" ); - break; - case mplPauseEvent: -// if ( osd_function != OSD_PAUSE ) osd_function=OSD_PAUSE; -// else osd_function=OSD_PLAY; - break; - case mplResizeEvent: - vo_resize=1; - vo_expose=1; - printf( "[psignal] resize.\n" ); -// if (video_out != NULL ) video_out->check_events(); - break; - case mplExposeEvent: - vo_expose=1; - printf( "[psignal] expose.\n" ); -// if (video_out != NULL ) video_out->check_events(); - break; - case mplSeekEvent: -// rel_seek_secs+=mplShMem->videodata.seek; -// if ( rel_seek_secs > 0 ) osd_function=OSD_FFW; -// else osd_function=OSD_REW; - break; - case mplIncAudioBufferDelay: -// audio_delay+=0.1; // increase audio buffer delay -// a_frame-=0.1; - break; - case mplDecAudioBufferDelay: -// audio_delay-=0.1; // increase audio buffer delay -// a_frame+=0.1; - break; - } - mplShMem->message=0; -} -*/ - void gtkSigHandler( int s ) { if ( s != SIGTYPE ) return; @@ -202,6 +157,7 @@ case evSkinBrowser: mplShMem->SkinChange=1; break; case evFileLoaded: strcpy( mplShMem->Filename,gtkShMem->fs.dir ); strcat( mplShMem->Filename,"/" ); strcat( mplShMem->Filename,gtkShMem->fs.filename ); + mplShMem->FilenameChanged=1; if ( mplMainAutoPlay ) mplGeneralTimer=1; break; case evMessageBox: