Mercurial > mplayer.hg
comparison gui/ui/main.c @ 35389:a54338c73df8
Simplify playlist handling by defining a symbolic constant.
This should make the code also easier to read.
author | ib |
---|---|
date | Mon, 26 Nov 2012 10:48:26 +0000 |
parents | 8b8534de8b83 |
children | 696a8a165952 |
comparison
equal
deleted
inserted
replaced
35388:6c9c58ad43a3 | 35389:a54338c73df8 |
---|---|
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 | 210 |
211 if ( listMgr( PLAYLIST_ITEM_GET_CURR,0 ) &&( guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM ) ) | 211 if ( isPlaylistStreamtype && listMgr( PLAYLIST_ITEM_GET_CURR,0 ) ) |
212 { | 212 { |
213 plItem * curr = listMgr( PLAYLIST_ITEM_GET_CURR,0 ); | 213 plItem * curr = listMgr( PLAYLIST_ITEM_GET_CURR,0 ); |
214 uiSetFileName( curr->path,curr->name,SAME_STREAMTYPE ); | 214 uiSetFileName( curr->path,curr->name,SAME_STREAMTYPE ); |
215 } | 215 } |
216 | 216 |