projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c1638
)
afh: Minor simplification for afh_get_chunk().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 20 Sep 2018 20:25:12 +0000
(22:25 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Fri, 21 Dec 2018 13:40:42 +0000
(14:40 +0100)
The function already defines a shortcut for the pointer to the audio
format handler, so use it.
afh_common.c
patch
|
blob
|
history
diff --git
a/afh_common.c
b/afh_common.c
index dcb0b856677de1bded1daa0cee8e3e2002870bf5..cb773bd69bb2cc2706969e280685cadc160b2e01 100644
(file)
--- a/
afh_common.c
+++ b/
afh_common.c
@@
-313,7
+313,7
@@
__must_check int afh_get_chunk(long unsigned chunk_num, struct afh_info *afhi,
if (ret < 0)
return ret;
}
- ret = af
l[audio_format_id].
get_chunk(chunk_num, *afh_context,
+ ret = af
h->
get_chunk(chunk_num, *afh_context,
buf, len);
if (ret < 0) {
afh->close(*afh_context);