comparison src/madplug/decoder.c @ 784:5ddfe9eac8ee trunk

[svn] - fix read_replaygain(). necessary fseek was missing in reuse fd code. closes #843. - minor cleanups.
author yaz
date Tue, 06 Mar 2007 01:12:16 -0800
parents 83a38bcfe7c8
children 2461b711162b
comparison
equal deleted inserted replaced
783:83a38bcfe7c8 784:5ddfe9eac8ee
432 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), 432 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS),
433 mad_plugin->set_info(info->title, 433 mad_plugin->set_info(info->title,
434 (tlen == 0 || info->size <= 0) ? -1 : tlen, 434 (tlen == 0 || info->size <= 0) ? -1 : tlen,
435 info->bitrate, info->freq, info->channels); 435 info->bitrate, info->freq, info->channels);
436 #ifdef DEBUG 436 #ifdef DEBUG
437 g_message("decode: tlen = %d\n", tlen); 437 g_message("decode: tlen = %d", tlen);
438 #endif 438 #endif
439 439
440 /* main loop */ 440 /* main loop */
441 do { 441 do {
442 if (!info->playback->playing) { 442 if (!info->playback->playing) {
551 551
552 info->bitrate = frame.header.bitrate; 552 info->bitrate = frame.header.bitrate;
553 553
554 if (!audmad_config.show_avg_vbr_bitrate && info->vbr && (iteration % 40 == 0)) { 554 if (!audmad_config.show_avg_vbr_bitrate && info->vbr && (iteration % 40 == 0)) {
555 #ifdef DEBUG 555 #ifdef DEBUG
556 #ifdef DEBUG_INTENSIVELY
556 g_message("decode vbr tlen = %d", tlen); 557 g_message("decode vbr tlen = %d", tlen);
558 #endif
557 #endif 559 #endif
558 mad_plugin->set_info(info->title, 560 mad_plugin->set_info(info->title,
559 (tlen == 0 || info->size <= 0) ? -1 : tlen, 561 (tlen == 0 || info->size <= 0) ? -1 : tlen,
560 info->bitrate, info->freq, info->channels); 562 info->bitrate, info->freq, info->channels);
561 } 563 }