projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1342999
)
Make fix_metrics() exit early so that it doesn't spam the output needlessly.
author
Pierre Ossman
<ossman@cendio.se>
Tue, 20 Jun 2006 15:36:28 +0000
(15:36 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Tue, 20 Jun 2006 15:36:28 +0000
(15:36 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1046
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/utils/padsp.c
patch
|
blob
|
history
diff --git
a/src/utils/padsp.c
b/src/utils/padsp.c
index af89f8fb789a98d1b2014fc94c10c25491496250..3b8ecbf197c1c8e817f74df828256af898af71d7 100644
(file)
--- a/
src/utils/padsp.c
+++ b/
src/utils/padsp.c
@@
-673,6
+673,13
@@
static void fix_metrics(fd_info *i) {
char t[PA_SAMPLE_SPEC_SNPRINT_MAX];
fs = pa_frame_size(&i->sample_spec);
+
+ /* Don't fix things more than necessary */
+ if ((i->fragment_size % fs) == 0 &&
+ i->n_fragments >= 2 &&
+ i->fragment_size > 0)
+ return;
+
i->fragment_size = (i->fragment_size/fs)*fs;
/* Number of fragments set? */