aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-08-04 15:07:33 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-08-04 15:07:33 +0000
commitfe72824d22029ce2346ba0395dfc926dd2b36c3e (patch)
tree6f39284fba382e81e12131f1b9d5725e4f8ba74e /src/plugins
parentd50f578e08754853d36367e754ffe8f60429f95b (diff)
downloadqmmp-fe72824d22029ce2346ba0395dfc926dd2b36c3e.tar.gz
qmmp-fe72824d22029ce2346ba0395dfc926dd2b36c3e.tar.bz2
qmmp-fe72824d22029ce2346ba0395dfc926dd2b36c3e.zip
fixed problem with qt4.4
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1104 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Input/vorbis/decoder_vorbis.cpp4
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)