summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index aadb1e289e..7aaff01e54 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -265,10 +265,7 @@ void codec_set_offset_callback(unsigned int value)
265 if (ci.stop_codec) 265 if (ci.stop_codec)
266 return ; 266 return ;
267 267
268 /* The 1000 here is a hack. pcmbuf_get_latency() should 268 latency = pcmbuf_get_latency() * cur_ti->id3.bitrate / 8;
269 * be more accurate
270 */
271 latency = (pcmbuf_get_latency() + 1000) * cur_ti->id3.bitrate / 8;
272 269
273 if (value < latency) { 270 if (value < latency) {
274 cur_ti->id3.offset = 0; 271 cur_ti->id3.offset = 0;