diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/Input/vorbis/decoder_vorbis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Input/vorbis/decoder_vorbis.cpp b/src/plugins/Input/vorbis/decoder_vorbis.cpp index e1e431f94..3a8a45916 100644 --- a/src/plugins/Input/vorbis/decoder_vorbis.cpp +++ b/src/plugins/Input/vorbis/decoder_vorbis.cpp @@ -128,8 +128,8 @@ bool DecoderVorbis::initialize() m_bitrate = ov_bitrate(&oggfile, -1) / 1000; int chan = 0; - m_totalTime = ov_time_total(&oggfile, -1) * 1000; - m_totalTime = qMax(qint64(0), m_totalTime); + if((m_totalTime = ov_time_total(&oggfile, -1) * 1000) < 0) + m_totalTime = 0; vorbis_info *ogginfo = ov_info(&oggfile, -1); if (ogginfo) |
