[vlc-commits] pulse: fix pass-through

Thomas Guillem git at videolan.org
Mon Oct 23 10:22:48 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 23 10:21:14 2017 +0200| [19680f32ac343913a25d9ff52e2f49620fb1465d] | committer: Thomas Guillem

pulse: fix pass-through

This fixes a recent regression from b04deb0af25eb692059ffec98c746ab307cea68a

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19680f32ac343913a25d9ff52e2f49620fb1465d
---

 modules/audio_output/pulse.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 02c8aa5155..1a36a7b647 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -729,6 +729,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
             fmt->i_physical_channels = AOUT_CHANS_2_0;
             fmt->i_channels = 2;
             encoding = PA_ENCODING_AC3_IEC61937;
+            ss.format = PA_SAMPLE_S16NE;
             break;
         case VLC_CODEC_EAC3:
             fmt->i_format = VLC_CODEC_SPDIFL;
@@ -737,6 +738,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
             fmt->i_physical_channels = AOUT_CHANS_2_0;
             fmt->i_channels = 2;
             encoding = PA_ENCODING_EAC3_IEC61937;
+            ss.format = PA_SAMPLE_S16NE;
             break;
         /* case VLC_CODEC_MPGA:
             fmt->i_format = VLC_CODEC_SPDIFL FIXME;
@@ -749,6 +751,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
             fmt->i_physical_channels = AOUT_CHANS_2_0;
             fmt->i_channels = 2;
             encoding = PA_ENCODING_DTS_IEC61937;
+            ss.format = PA_SAMPLE_S16NE;
             break;
         default:
             if (!AOUT_FMT_LINEAR(fmt) || aout_FormatNbChannels(fmt) == 0)



More information about the vlc-commits mailing list