summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-07-12 12:27:53 +0200
committerTim-Philipp Müller <tim@centricular.net>2013-07-17 18:57:41 +0100
commit5404c98df9ff9e3fa962eccc14a957846e2491b7 (patch)
treeef707086815584071cc6b76914aebaabb9634370 /ext
parent6531446a7857a4d898cd37c3f8a729af5dc75319 (diff)
downloadgst-plugins-good-5404c98df9ff9e3fa962eccc14a957846e2491b7.tar.gz
gst-plugins-good-5404c98df9ff9e3fa962eccc14a957846e2491b7.tar.xz
pulse: relax mulaw and alaw format checks
The audio library considers them as encoded formats and does not fill in the sample width. The audio ringbuffers identifies the format as alaw/mulaw and that is always 8 bits.
Diffstat (limited to 'ext')
-rw-r--r--ext/pulse/pulseutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/pulse/pulseutil.c b/ext/pulse/pulseutil.c
index 840929185..2066c8e15 100644
--- a/ext/pulse/pulseutil.c
+++ b/ext/pulse/pulseutil.c
@@ -144,12 +144,10 @@ gst_pulse_fill_format_info (GstAudioRingBufferSpec * spec, pa_format_info ** f,
format = pa_format_info_new ();
- if (spec->type == GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW
- && GST_AUDIO_INFO_WIDTH (ainfo) == 8) {
+ if (spec->type == GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW) {
format->encoding = PA_ENCODING_PCM;
sf = PA_SAMPLE_ULAW;
- } else if (spec->type == GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW
- && GST_AUDIO_INFO_WIDTH (ainfo) == 8) {
+ } else if (spec->type == GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW) {
format->encoding = PA_ENCODING_PCM;
sf = PA_SAMPLE_ALAW;
} else if (spec->type == GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW) {