[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk fs.c,1.45,1.46
Zoltan Ponekker
pontscho at mplayerhq.hu
Sat Feb 1 10:00:40 CET 2003
Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv26844/Gui/mplayer/gtk
Modified Files:
fs.c
Log Message:
save only video files place
(eh)
Index: fs.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/fs.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- fs.c 1 Feb 2003 08:42:52 -0000 1.45
+++ fs.c 1 Feb 2003 09:00:35 -0000 1.46
@@ -221,7 +221,7 @@
gtk_widget_show( list );
}
-int fs_PersistantHistory( char *subject ); /* forward declaration */
+void fs_PersistantHistory( char *subject ); /* forward declaration */
void ShowFileSelect( int type,int modal )
{
@@ -332,21 +332,21 @@
fsFileSelect=NULL;
}
-int fs_PersistantHistory( char * subject )
+void fs_PersistantHistory( char * subject )
{
int i;
+ if ( fsType != fsVideoSelector ) return;
+
for ( i=0;i < fsPersistant_MaxPos;i++ )
if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) )
{
char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp;
- return 0;
+ return;
}
gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] );
for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1];
fsHistory[0]=gstrdup( subject );
-
- return 0;
}
//-----------------------------------------------
More information about the MPlayer-cvslog
mailing list