From fa29b2e1deab2bd08077a081a7db663456fcf42b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 27 Jun 2007 13:57:56 +0000 Subject: 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 --- lib/qmmp/Input/flac/tag.cpp | 4 ++-- lib/qmmp/Input/mpc/tag.cpp | 4 ++-- lib/qmmp/Input/vorbis/tag.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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(); } -- cgit v1.2.3-13-gbd6f