diff gui/ui/actions.c @ 34064:54becc464788

Set MPlayer filename in uiSetFileName(). This ensures that filename always points to guiInfo.Filename (the GUI filename). If guiInit() is called without filename being set, leave it that way. (This applies if the GUI should not start playing immediately.)
author ib
date Thu, 29 Sep 2011 13:26:32 +0000
parents 57d711d3dcca
children 360ed500a6e9
line wrap: on
line diff
--- a/gui/ui/actions.c	Thu Sep 29 11:19:23 2011 +0000
+++ b/gui/ui/actions.c	Thu Sep 29 13:26:32 2011 +0000
@@ -229,7 +229,9 @@
     else
         setddup(&guiInfo.Filename, dir, name);
 
+    filename = guiInfo.Filename;
     guiInfo.StreamType = type;
+
     nfree(guiInfo.AudioFilename);
     nfree(guiInfo.SubtitleFilename);
 }