add filenamechanged

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1814 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-08-31 21:23:55 +00:00
parent 061bda6e2d
commit f67d569a5a
2 changed files with 3 additions and 45 deletions

View File

@ -46,7 +46,9 @@ typedef struct
int StreamType;
int TimeSec;
int LengthInSec;
char Filename[4096];
int FilenameChanged;
int SkinChange;
} mplCommStruct;

View File

@ -47,51 +47,6 @@ void mplErrorHandler( int critical,const char * format, ... )
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 @@ void mplMainSigHandler( int s )
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: