vlc | branch: master | Thomas Guillem <[email protected]> | Mon May 15 12:19:24 2017 +0200| [2f23590d1749375a9854c9845529ca511f9a75b5] | committer: Thomas Guillem
pulse: handle passthrough with invalid an channel count > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f23590d1749375a9854c9845529ca511f9a75b5 --- modules/audio_output/pulse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c index 38a0d6624e..19c9fe6ce0 100644 --- a/modules/audio_output/pulse.c +++ b/modules/audio_output/pulse.c @@ -718,6 +718,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt) fmt->i_format = VLC_CODEC_SPDIFL; fmt->i_bytes_per_frame = 4; fmt->i_frame_length = 1; + fmt->i_physical_channels = fmt->i_original_channels = AOUT_CHANS_2_0; + fmt->i_channels = 2; encoding = PA_ENCODING_AC3_IEC61937; ss.format = PA_SAMPLE_S16NE; break; @@ -725,6 +727,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt) fmt->i_format = VLC_CODEC_SPDIFL; fmt->i_bytes_per_frame = 4; fmt->i_frame_length = 1; + fmt->i_physical_channels = fmt->i_original_channels = AOUT_CHANS_2_0; + fmt->i_channels = 2; encoding = PA_ENCODING_EAC3_IEC61937; ss.format = PA_SAMPLE_S16NE; break; @@ -737,6 +741,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt) fmt->i_format = VLC_CODEC_SPDIFL; fmt->i_bytes_per_frame = 4; fmt->i_frame_length = 1; + fmt->i_physical_channels = fmt->i_original_channels = AOUT_CHANS_2_0; + fmt->i_channels = 2; encoding = PA_ENCODING_DTS_IEC61937; ss.format = PA_SAMPLE_S16NE; break; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
