[Mplayer-cvslog] CVS: main/Gui/mplayer psignal.c,1.7,1.8 play.h,1.7,1.8

Zoltan Ponekker pontscho at mplayer.dev.hu
Fri Aug 31 23:23:58 CEST 2001


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv14503

Modified Files:
	psignal.c play.h 
Log Message:
add filenamechanged

Index: psignal.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/psignal.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- psignal.c	31 Aug 2001 14:16:28 -0000	1.7
+++ psignal.c	31 Aug 2001 21:23:55 -0000	1.8
@@ -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:

Index: play.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- play.h	31 Aug 2001 14:16:28 -0000	1.7
+++ play.h	31 Aug 2001 21:23:55 -0000	1.8
@@ -46,7 +46,9 @@
    int    StreamType;
    int    TimeSec;
    int    LengthInSec;
+   
    char   Filename[4096];
+   int    FilenameChanged;
    
    int    SkinChange;
 } mplCommStruct;




More information about the MPlayer-cvslog mailing list