summaryrefslogtreecommitdiff
path: root/plugins/ffap
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-27 16:06:57 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-27 16:06:57 +0100
commit1522d68ba866d47e0d9c12bc4df28d7e71407705 (patch)
tree18a82f08a0ae55445feb8849cd554096a3c106f2 /plugins/ffap
parent94dd735f3c45b43ca00eaba4f22ef8440259e142 (diff)
fixed a bunch of minor compiler warnings and alsa hang on exit
Diffstat (limited to 'plugins/ffap')
-rw-r--r--plugins/ffap/ffap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c
index 5a3bf1f4..e04ca40d 100644
--- a/plugins/ffap/ffap.c
+++ b/plugins/ffap/ffap.c
@@ -609,9 +609,9 @@ static int ape_read_packet(DB_FILE *fp, APEContext *ape_ctx)
// packet_sizeleft -= 8;
// update bitrate
- float sec = (float)nblocks / ape->samplerate;
int bitrate = -1;
- if (sec != 0 && ape->frames[ape->currentframe].size != 0) {
+ if (nblocks != 0 && ape->frames[ape->currentframe].size != 0) {
+ float sec = (float)nblocks / ape->samplerate;
bitrate = ape->frames[ape->currentframe].size / sec * 8;
}
if (bitrate > 0) {
@@ -1664,7 +1664,7 @@ ffap_insert (DB_playItem_t *after, const char *fname) {
it->filetype = "APE";
deadbeef->pl_set_item_duration (it, duration);
- int v2err = deadbeef->junk_read_id3v2 (it, fp);
+ /*int v2err = */deadbeef->junk_read_id3v2 (it, fp);
int v1err = deadbeef->junk_read_id3v1 (it, fp);
if (v1err >= 0) {
deadbeef->fseek (fp, -128, SEEK_END);
@@ -1672,7 +1672,7 @@ ffap_insert (DB_playItem_t *after, const char *fname) {
else {
deadbeef->fseek (fp, 0, SEEK_END);
}
- int apeerr = deadbeef->junk_read_ape (it, fp);
+ /*int apeerr = */deadbeef->junk_read_ape (it, fp);
deadbeef->fclose (fp);