Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/gui/interface.c Sun Nov 25 22:56:28 2012 +0000 +++ b/gui/interface.c Mon Nov 26 10:48:26 2012 +0000 @@ -789,9 +789,7 @@ filename = NULL; - if (!listMgr(PLAYLIST_ITEM_GET_CURR, 0) && - (guiInfo.StreamType == STREAMTYPE_FILE || - guiInfo.StreamType == STREAMTYPE_STREAM)) + if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0)) uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY); guiInfo.ElapsedTime = 0;