Mercurial > audlegacy-plugins
diff src/flac/plugin.c @ 903:1820b4026fe2 trunk
[svn] - flac: when bitrate update is disabled, always display VBR instead of a useless value
| author | giacomo |
|---|---|
| date | Fri, 30 Mar 2007 01:52:06 -0700 |
| parents | 454ad11020ec |
| children | aa85fe8d2473 |
line wrap: on
line diff
--- a/src/flac/plugin.c Thu Mar 29 03:14:36 2007 -0700 +++ b/src/flac/plugin.c Fri Mar 30 01:52:06 2007 -0700 @@ -165,7 +165,10 @@ void set_track_info(const char* title, int length_in_msec) { if (stream_data_.is_playing) { - flac_ip.set_info((char*) title, length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels); + if ( !flac_cfg.title.disable_bitrate_update ) + flac_ip. set_info((char*) title, length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels); + else + flac_ip. set_info((char*) title, length_in_msec, -1, stream_data_.sample_rate, stream_data_.channels); } } @@ -333,7 +336,10 @@ } stream_data_.title = flac_format_song_title(filename); - flac_ip.set_info(stream_data_.title, stream_data_.length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels); + if ( !flac_cfg.title.disable_bitrate_update ) + flac_ip.set_info(stream_data_.title, stream_data_.length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels); + else + flac_ip.set_info(stream_data_.title, stream_data_.length_in_msec, -1, stream_data_.sample_rate, stream_data_.channels); stream_data_.seek_to_in_sec = -1; stream_data_.play_thread_open = true;
