Mercurial > mplayer.hg
changeset 36970:a4d31f0261af
Output symbol character 'r' for AudioPassthrough.
This may not always be true, but certainly in most cases.
author | ib |
---|---|
date | Tue, 25 Mar 2014 12:48:55 +0000 |
parents | 4fa7293b11fc |
children | fedc8214f8b1 |
files | gui/ui/render.c gui/win32/widgetrender.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/render.c Tue Mar 25 12:41:35 2014 +0000 +++ b/gui/ui/render.c Tue Mar 25 12:48:55 2014 +0000 @@ -202,7 +202,7 @@ break; case 2: - av_strlcat(trbuf, "t", sizeof(trbuf)); + av_strlcat(trbuf, (guiInfo.AudioPassthrough ? "r" : "t"), sizeof(trbuf)); break; default:
--- a/gui/win32/widgetrender.c Tue Mar 25 12:41:35 2014 +0000 +++ b/gui/win32/widgetrender.c Tue Mar 25 12:48:55 2014 +0000 @@ -169,7 +169,7 @@ if(guiInfo.AudioChannels == 0) stringreplace(text, "$a", "n"); else if(guiInfo.AudioChannels == 1) stringreplace(text, "$a", "m"); - else if(guiInfo.AudioChannels == 2) stringreplace(text, "$a", "t"); + else if(guiInfo.AudioChannels == 2) stringreplace(text, "$a", (guiInfo.AudioPassthrough ? : "r": "t")); else stringreplace(text, "$a", "r"); if(guiInfo.StreamType == STREAMTYPE_FILE)