comparison gui/ui/main.c @ 34669:697aaedfe59e

Remove global variable pointing to playlist item last played. The variable and the condition it is used for are pointless, because it isn't possible to insert an playlist item before the current one without rebuilding the whole list which would invalidate this pointer.
author ib
date Wed, 22 Feb 2012 13:27:42 +0000
parents 73a5ecb53ee2
children 42fa91951bd2
comparison
equal deleted inserted replaced
34668:00e8aecfa7ff 34669:697aaedfe59e
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 ) ) 211 if ( listMgr( PLAYLIST_ITEM_GET_CURR,0 ) &&( guiInfo.StreamType == STREAMTYPE_FILE ) )
212 { 212 {
213 plItem * next = listMgr( PLAYLIST_ITEM_GET_CURR,0 ); 213 plItem * next = listMgr( PLAYLIST_ITEM_GET_CURR,0 );
214 plLastPlayed=next;
215 uiSetFileName( next->path,next->name,SAME_STREAMTYPE ); 214 uiSetFileName( next->path,next->name,SAME_STREAMTYPE );
216 } 215 }
217 216
218 switch ( guiInfo.StreamType ) 217 switch ( guiInfo.StreamType )
219 { 218 {