comparison gui/interface.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 746e2e0577b2
children 2de8e26093c4
comparison
equal deleted inserted replaced
35388:6c9c58ad43a3 35389:a54338c73df8
787 if (guiInfo.NewPlay == GUI_FILE_NEW) 787 if (guiInfo.NewPlay == GUI_FILE_NEW)
788 break; 788 break;
789 789
790 filename = NULL; 790 filename = NULL;
791 791
792 if (!listMgr(PLAYLIST_ITEM_GET_CURR, 0) && 792 if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0))
793 (guiInfo.StreamType == STREAMTYPE_FILE ||
794 guiInfo.StreamType == STREAMTYPE_STREAM))
795 uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY); 793 uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY);
796 794
797 guiInfo.ElapsedTime = 0; 795 guiInfo.ElapsedTime = 0;
798 guiInfo.Position = 0; 796 guiInfo.Position = 0;
799 guiInfo.AudioChannels = 0; 797 guiInfo.AudioChannels = 0;