[pulseaudio-discuss] [PATCH 2/8] modules: Fix dead code in oss-util

Peter Meerwald pmeerw at pmeerw.net
Mon Sep 14 09:07:43 PDT 2015


From: Peter Meerwald <p.meerwald at bct-electronic.com>

CID 1323599

if ioctl(SNDCTL_DSP_SETFMT) is successful, use the format
---
 src/modules/oss/oss-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/oss/oss-util.c b/src/modules/oss/oss-util.c
index 42ee7f5..ad03ddc 100644
--- a/src/modules/oss/oss-util.c
+++ b/src/modules/oss/oss-util.c
@@ -189,7 +189,7 @@ int pa_oss_auto_format(int fd, pa_sample_spec *ss) {
                 } else
                     ss->format = PA_SAMPLE_U8;
             } else
-                ss->format = f == AFMT_S16_LE ? PA_SAMPLE_S16LE : PA_SAMPLE_S16BE;
+                ss->format = f;
         } else
             ss->format = PA_SAMPLE_S16NE;
     }
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list