Discussion:
aout: don't print reverse stereo channels info
(too old to reply)
Thomas Guillem
2017-07-13 15:19:41 UTC
Permalink
Raw Message
vlc | branch: master | Thomas Guillem <***@gllm.fr> | Thu Jul 13 14:20:28 2017 +0200| [f6611ccf8ce83e3418d82f16d7f9104075e75858] | committer: Thomas Guillem

aout: don't print reverse stereo channels info

As this flag is only set by the user, we don't really care to print this debug
info.
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6611ccf8ce83e3418d82f16d7f9104075e75858
---

src/audio_output/common.c | 31 +++++++++++--------------------
1 file changed, 11 insertions(+), 20 deletions(-)

diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index 57d1a7beb3..47f4836d99 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -118,26 +118,17 @@ const char * aout_FormatPrintChannels( const audio_sample_format_t * p_format )
return "Left";
return "Right";
case AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT:
- if ( p_format->i_original_channels & AOUT_CHAN_REVERSESTEREO )
- {
- if ( p_format->i_original_channels & AOUT_CHAN_DOLBYSTEREO )
- return "Dolby/Reverse";
- return "Stereo/Reverse";
- }
- else
- {
- if ( p_format->i_original_channels & AOUT_CHAN_DOLBYSTEREO )
- return "Dolby";
- else if ( p_format->i_original_channels & AOUT_CHAN_DUALMONO )
- return "Dual-mono";
- else if ( p_format->i_original_channels == AOUT_CHAN_CENTER )
- return "Stereo/Mono";
- else if ( !(p_format->i_original_channels & AOUT_CHAN_RIGHT) )
- return "Stereo/Left";
- else if ( !(p_format->i_original_channels & AOUT_CHAN_LEFT) )
- return "Stereo/Right";
- return "Stereo";
- }
+ if ( p_format->i_original_channels & AOUT_CHAN_DOLBYSTEREO )
+ return "Dolby";
+ else if ( p_format->i_original_channels & AOUT_CHAN_DUALMONO )
+ return "Dual-mono";
+ else if ( p_format->i_original_channels == AOUT_CHAN_CENTER )
+ return "Stereo/Mono";
+ else if ( !(p_format->i_original_channels & AOUT_CHAN_RIGHT) )
+ return "Stereo/Left";
+ else if ( !(p_format->i_original_channels & AOUT_CHAN_LEFT) )
+ return "Stereo/Right";
+ return "Stereo";
case AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_CENTER:
return "3F";
case AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_REARCENTER:

Loading...