aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-06-27 13:57:56 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-06-27 13:57:56 +0000
commitfa29b2e1deab2bd08077a081a7db663456fcf42b (patch)
treeb806538a77efd78c6c5838886d2bfd48fdddc4be /lib
parentae16fa17daef6113d0dca053f083ab41f329d8f5 (diff)
downloadqmmp-fa29b2e1deab2bd08077a081a7db663456fcf42b.tar.gz
qmmp-fa29b2e1deab2bd08077a081a7db663456fcf42b.tar.bz2
qmmp-fa29b2e1deab2bd08077a081a7db663456fcf42b.zip
fixed zero duration bug in mpc, flac, vorbis plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@18 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib')
-rw-r--r--lib/qmmp/Input/flac/tag.cpp4
-rw-r--r--lib/qmmp/Input/mpc/tag.cpp4
-rw-r--r--lib/qmmp/Input/vorbis/tag.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/qmmp/Input/flac/tag.cpp b/lib/qmmp/Input/flac/tag.cpp
index 71feb9051..fd3530c0c 100644
--- a/lib/qmmp/Input/flac/tag.cpp
+++ b/lib/qmmp/Input/flac/tag.cpp
@@ -38,12 +38,12 @@ Tag::Tag(const QString &source)
m_title = QString::fromUtf8(m_tag->title().toCString(TRUE)).trimmed();
m_year = 0;
m_track = 0;
- if(fileRef.audioProperties())
- m_length = fileRef.audioProperties()->length();
m_empty = FALSE;
}
else
m_tag = 0;
+ if(fileRef.audioProperties())
+ m_length = fileRef.audioProperties()->length();
}
diff --git a/lib/qmmp/Input/mpc/tag.cpp b/lib/qmmp/Input/mpc/tag.cpp
index 71feb9051..fd3530c0c 100644
--- a/lib/qmmp/Input/mpc/tag.cpp
+++ b/lib/qmmp/Input/mpc/tag.cpp
@@ -38,12 +38,12 @@ Tag::Tag(const QString &source)
m_title = QString::fromUtf8(m_tag->title().toCString(TRUE)).trimmed();
m_year = 0;
m_track = 0;
- if(fileRef.audioProperties())
- m_length = fileRef.audioProperties()->length();
m_empty = FALSE;
}
else
m_tag = 0;
+ if(fileRef.audioProperties())
+ m_length = fileRef.audioProperties()->length();
}
diff --git a/lib/qmmp/Input/vorbis/tag.cpp b/lib/qmmp/Input/vorbis/tag.cpp
index 15964e615..8f7e28caa 100644
--- a/lib/qmmp/Input/vorbis/tag.cpp
+++ b/lib/qmmp/Input/vorbis/tag.cpp
@@ -38,12 +38,12 @@ Tag::Tag(const QString &source)
m_title = QString::fromUtf8(m_tag->title().toCString(TRUE)).trimmed();
m_year = 0;
m_track = 0;
- if(fileRef.audioProperties())
- m_length = fileRef.audioProperties()->length();
m_empty = FALSE;
}
else
m_tag = 0;
+ if(fileRef.audioProperties())
+ m_length = fileRef.audioProperties()->length();
}