diff gui/ui/main.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 f42cc2361ee4
children a5f5f61a7a35
line wrap: on
line diff
--- a/gui/ui/main.c	Mon Dec 03 14:04:43 2012 +0000
+++ b/gui/ui/main.c	Mon Dec 03 14:10:12 2012 +0000
@@ -208,12 +208,6 @@
 
         if ( ( msg == evPlaySwitchToPause )&&( guiInfo.Playing == GUI_PAUSE ) ) goto NoPause;
 
-	if ( isPlaylistStreamtype && listMgr( PLAYLIST_ITEM_GET_CURR,0 ) )
-	 {
-	  plItem * curr = listMgr( PLAYLIST_ITEM_GET_CURR,0 );
-	  uiSetFile( curr->path,curr->name,SAME_STREAMTYPE );
-	 }
-
         switch ( guiInfo.StreamType )
          {
 	  case STREAMTYPE_FILE: