Mercurial > mplayer.hg
diff gui/ui/gtk/fileselect.c @ 34065:8a7056729022
Change guiInfo.Filename by using uiSetFileName() only.
The two nfree() may be omitted, because they are performed
in uiSetFileName().
author | ib |
---|---|
date | Thu, 29 Sep 2011 13:35:31 +0000 |
parents | e0d211c62cf7 |
children | 5a7bb8f06478 |
line wrap: on
line diff
--- a/gui/ui/gtk/fileselect.c Thu Sep 29 13:26:32 2011 +0000 +++ b/gui/ui/gtk/fileselect.c Thu Sep 29 13:35:31 2011 +0000 @@ -489,11 +489,8 @@ switch ( fsType ) { case fsVideoSelector: - setddup( &guiInfo.Filename,fsSelectedDirectory,fsSelectedFile ); - guiInfo.StreamType=STREAMTYPE_FILE; + uiSetFileName( fsSelectedDirectory,fsSelectedFile,STREAMTYPE_FILE ); guiInfo.NewPlay=GUI_FILE_NEW; sub_fps=0; - nfree( guiInfo.AudioFilename ); - nfree( guiInfo.SubtitleFilename ); fs_PersistantHistory( get_current_dir_name_utf8() ); //totem, write into history break; case fsSubtitleSelector: