diff gui/interface.c @ 35484:9dceffa5d9b2

Set filename for MPlayer in GUI_PREPARE. This allows to remove some ugly code from uiEventHandling() (evPlay) whose sole purpose was setting the global filename variable. For CD, VCD and DVD this is (indirectly) done in GUI_PREPARE, too, so do it here for FILE and STREAM as well.
author ib
date Mon, 03 Dec 2012 14:10:12 +0000
parents 2173d4fe2ef1
children 9ef9131adfe5
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 03 14:04:43 2012 +0000
+++ b/gui/interface.c	Mon Dec 03 14:10:12 2012 +0000
@@ -414,6 +414,7 @@
         switch (guiInfo.StreamType) {
         case STREAMTYPE_FILE:
         case STREAMTYPE_STREAM:
+            filename = guiInfo.Filename;
             break;
 
         case STREAMTYPE_CDDA: