Mercurial > mplayer.hg
comparison gui/interface.c @ 35412:2de8e26093c4
Don't unconditionally reset AudioChannels after playback.
Only do so if no media opened.
This will continue displaying the correct audio channel
information for the file still being opened after playback.
author | ib |
---|---|
date | Thu, 29 Nov 2012 11:35:22 +0000 |
parents | a54338c73df8 |
children | b092553a25c1 |
comparison
equal
deleted
inserted
replaced
35411:abece00352ec | 35412:2de8e26093c4 |
---|---|
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 (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0)) | 792 if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0)) { |
793 guiInfo.AudioChannels = 0; | |
793 uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY); | 794 uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY); |
795 } | |
794 | 796 |
795 guiInfo.ElapsedTime = 0; | 797 guiInfo.ElapsedTime = 0; |
796 guiInfo.Position = 0; | 798 guiInfo.Position = 0; |
797 guiInfo.AudioChannels = 0; | |
798 | 799 |
799 guiInfo.Track = 1; | 800 guiInfo.Track = 1; |
800 guiInfo.Chapter = 1; | 801 guiInfo.Chapter = 1; |
801 guiInfo.Angle = 1; | 802 guiInfo.Angle = 1; |
802 | 803 |