summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 7f8bfb10c2..555b02b850 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -486,7 +486,7 @@ void guiLoadSubtitle( char * name )
if ( name )
{
mp_msg( MSGT_GPLAYER,MSGL_INFO,MSGTR_LoadingSubtitles,name );
- subdata=sub_read_file( gstrdup( name ), guiIntfStruct.FPS );
+ subdata=sub_read_file( name, guiIntfStruct.FPS );
if ( !subdata ) mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_CantLoadSub,name );
sub_name = (malloc(2 * sizeof(char*))); //when mplayer will be restarted
sub_name[0] = strdup(name); //sub_name[0] will be read