Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35483:8ac7761bcb7c | 35484:9dceffa5d9b2 |
---|---|
205 case evPlay: | 205 case evPlay: |
206 case evPlaySwitchToPause: | 206 case evPlaySwitchToPause: |
207 play: | 207 play: |
208 | 208 |
209 if ( ( msg == evPlaySwitchToPause )&&( guiInfo.Playing == GUI_PAUSE ) ) goto NoPause; | 209 if ( ( msg == evPlaySwitchToPause )&&( guiInfo.Playing == GUI_PAUSE ) ) goto NoPause; |
210 | |
211 if ( isPlaylistStreamtype && listMgr( PLAYLIST_ITEM_GET_CURR,0 ) ) | |
212 { | |
213 plItem * curr = listMgr( PLAYLIST_ITEM_GET_CURR,0 ); | |
214 uiSetFile( curr->path,curr->name,SAME_STREAMTYPE ); | |
215 } | |
216 | 210 |
217 switch ( guiInfo.StreamType ) | 211 switch ( guiInfo.StreamType ) |
218 { | 212 { |
219 case STREAMTYPE_FILE: | 213 case STREAMTYPE_FILE: |
220 case STREAMTYPE_STREAM: | 214 case STREAMTYPE_STREAM: |