aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/oggflac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-11 19:52:14 +0100
committerMax Kellermann <max@duempel.org>2009-11-11 19:52:14 +0100
commitd35efddd65934e5adebe0c01ab7953c9a34082ed (patch)
treeb30c23cfeb9d644a36e3450c9602ad3e41ef255f /src/decoder/oggflac_plugin.c
parent7b13776f2dd2feeb4bd28e8cf023ec81474e4eaa (diff)
downloadmpd-d35efddd65934e5adebe0c01ab7953c9a34082ed.tar.gz
mpd-d35efddd65934e5adebe0c01ab7953c9a34082ed.tar.xz
mpd-d35efddd65934e5adebe0c01ab7953c9a34082ed.zip
decoder/flac: calculate bit rate in flac_common_write()
Removed the "bit_rate" attribute from the flac_data struct. Pass the number of bytes since the last call to flac_common_write(), and let it calculate the bit rate.
Diffstat (limited to '')
-rw-r--r--src/decoder/oggflac_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/oggflac_plugin.c b/src/decoder/oggflac_plugin.c
index ffd622600..d9a5b9226 100644
--- a/src/decoder/oggflac_plugin.c
+++ b/src/decoder/oggflac_plugin.c
@@ -161,7 +161,7 @@ oggflac_write_cb(G_GNUC_UNUSED const OggFLAC__SeekableStreamDecoder *decoder,
time_change = ((float)samples) / frame->header.sample_rate;
data->time += time_change;
- return flac_common_write(data, frame, buf);
+ return flac_common_write(data, frame, buf, 0);
}
/* used by TagDup */