diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-21 19:12:46 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-21 19:12:46 +0000 |
commit | ebdb38271ec4b4045c4e3db4408489a52729d050 (patch) | |
tree | c2b197cbd5fb82bac5a95fcab7f6b9f36b1c9974 /Gui/mplayer/gtk/fs.c | |
parent | 337542a33163ccb9d836219f8ed202db65401efd (diff) | |
download | mpv-ebdb38271ec4b4045c4e3db4408489a52729d050.tar.bz2 mpv-ebdb38271ec4b4045c4e3db4408489a52729d050.tar.xz |
- add subcp
- fix some 10l in gui
- fix one 10l bug in subreader
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9057 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/gtk/fs.c')
-rw-r--r-- | Gui/mplayer/gtk/fs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Gui/mplayer/gtk/fs.c b/Gui/mplayer/gtk/fs.c index db91bf739f..98d9c219cb 100644 --- a/Gui/mplayer/gtk/fs.c +++ b/Gui/mplayer/gtk/fs.c @@ -334,7 +334,12 @@ int fs_PersistantHistory( char * subject ) { int i; - for ( i=0;i < fsPersistant_MaxPos;i++ ) if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) return 0; + 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; + } gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=gstrdup( subject ); |