projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cec9a93
)
Fix another bug in com_touch().
author
Andre Noll
<maan@systemlinux.org>
Sun, 6 Jul 2008 21:45:26 +0000
(23:45 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 6 Jul 2008 21:45:26 +0000
(23:45 +0200)
Only set the amp value if the -a option was given.
aft.c
patch
|
blob
|
history
diff --git
a/aft.c
b/aft.c
index e29c15a0d48afe17fa39f6c349f9fa1e8f7e7216..922f04229c47ea3545f401bf3c6429ef86695e1d 100644
(file)
--- a/
aft.c
+++ b/
aft.c
@@
-1981,7
+1981,8
@@
static int touch_audio_file(__a_unused struct osl_table *table,
new_afsi.num_played = tad->cto->num_played;
if (tad->cto->last_played >= 0)
new_afsi.last_played = tad->cto->last_played;
- new_afsi.amp = tad->cto->amp;
+ if (tad->cto->amp >= 0)
+ new_afsi.amp = tad->cto->amp;
}
tad->num_matches++;
save_afsi(&new_afsi, &obj); /* in-place update */