aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-09-22 15:29:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-09-22 15:29:54 +0000
commitc9d69d13e214c0071a65ba967276f057d204f8f8 (patch)
treea4900266b80116847b0342da2fc86fbb26595dc0 /src
parent362d4e2b4f57a39efeef52a3fd7b5dc432207c0a (diff)
downloadqmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.tar.gz
qmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.tar.bz2
qmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.zip
enabled sndfile plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1248 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/CMakeLists.txt4
-rw-r--r--src/plugins/Input/Input.pro4
-rw-r--r--src/plugins/Input/sndfile/decoder_sndfile.cpp8
-rw-r--r--src/plugins/Input/sndfile/decoder_sndfile.h6
-rw-r--r--src/plugins/Input/sndfile/decodersndfilefactory.cpp14
-rw-r--r--src/plugins/Input/sndfile/decodersndfilefactory.h9
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts16
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts8
-rw-r--r--src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts8
-rw-r--r--src/qmmpui/detailsdialog.cpp3
17 files changed, 66 insertions, 70 deletions
diff --git a/src/plugins/Input/CMakeLists.txt b/src/plugins/Input/CMakeLists.txt
index a22de859b..7fe2b17f4 100644
--- a/src/plugins/Input/CMakeLists.txt
+++ b/src/plugins/Input/CMakeLists.txt
@@ -2,11 +2,11 @@
INCLUDE(FindPkgConfig)
SET(USE_MAD TRUE CACHE BOOL "enable/disable mad plugin")
-#SET(USE_FLAC TRUE CACHE BOOL "enable/disable flac plugin")
+SET(USE_FLAC TRUE CACHE BOOL "enable/disable flac plugin")
SET(USE_VORBIS TRUE CACHE BOOL "enable/disable ogg vorbis plugin")
#SET(USE_FFMPEG TRUE CACHE BOOL "enable/disable ffmpeg plugin")
#SET(USE_MPC TRUE CACHE BOOL "enable/disable mpc plugin")
-#SET(USE_SNDFILE TRUE CACHE BOOL "enable/disable sndfile plugin")
+SET(USE_SNDFILE TRUE CACHE BOOL "enable/disable sndfile plugin")
#SET(USE_WAVPACK TRUE CACHE BOOL "enable/disable wavpack plugin")
#SET(USE_MODPLUG TRUE CACHE BOOL "enable/disable modplug plugin")
#SET(USE_AAC TRUE CACHE BOOL "enable/disable aac plugin")
diff --git a/src/plugins/Input/Input.pro b/src/plugins/Input/Input.pro
index 467a495ed..4cac7e372 100644
--- a/src/plugins/Input/Input.pro
+++ b/src/plugins/Input/Input.pro
@@ -4,7 +4,7 @@ SUBDIRS += mad cue
TEMPLATE = subdirs
unix{
-SUBDIRS += vorbis# sndfile wavpack
+SUBDIRS += vorbis sndfile# wavpack
contains(CONFIG, MODPLUG_PLUGIN){
# SUBDIRS += modplug
message(***************************)
@@ -20,7 +20,7 @@ contains(CONFIG, MUSEPACK_PLUGIN){
}
contains(CONFIG, FLAC_PLUGIN){
-# SUBDIRS += flac
+ SUBDIRS += flac
message(***********************)
message(* FLAC plugin enabled *)
message(***********************)
diff --git a/src/plugins/Input/sndfile/decoder_sndfile.cpp b/src/plugins/Input/sndfile/decoder_sndfile.cpp
index 77e4438c2..45ea15cbe 100644
--- a/src/plugins/Input/sndfile/decoder_sndfile.cpp
+++ b/src/plugins/Input/sndfile/decoder_sndfile.cpp
@@ -30,8 +30,8 @@
// Decoder class
-DecoderSndFile::DecoderSndFile(QObject *parent, DecoderFactory *d, Output *o, const QString &path)
- : Decoder(parent, d, o)
+DecoderSndFile::DecoderSndFile(const QString &path)
+ : Decoder()
{
m_path = path;
m_bitrate = 0;
@@ -91,12 +91,12 @@ int DecoderSndFile::bitrate()
return m_bitrate;
}
-qint64 DecoderSndFile::readAudio(char *audio, qint64 maxSize)
+qint64 DecoderSndFile::read(char *audio, qint64 maxSize)
{
return sizeof(short)* sf_read_short (m_sndfile, (short *)audio, maxSize / sizeof(short));
}
-void DecoderSndFile::seekAudio(qint64 pos)
+void DecoderSndFile::seek(qint64 pos)
{
sf_seek(m_sndfile, m_freq * pos/1000, SEEK_SET);
}
diff --git a/src/plugins/Input/sndfile/decoder_sndfile.h b/src/plugins/Input/sndfile/decoder_sndfile.h
index 9b1bb6fb0..5c00e616f 100644
--- a/src/plugins/Input/sndfile/decoder_sndfile.h
+++ b/src/plugins/Input/sndfile/decoder_sndfile.h
@@ -30,17 +30,17 @@ extern "C"{
class DecoderSndFile : public Decoder
{
public:
- DecoderSndFile(QObject *, DecoderFactory *, Output *, const QString &);
+ DecoderSndFile(const QString &path);
virtual ~DecoderSndFile();
// Standard Decoder API
bool initialize();
qint64 totalTime();
int bitrate();
+ qint64 read(char *audio, qint64 maxSize);
+ void seek(qint64 time);
private:
- qint64 readAudio(char *audio, qint64 maxSize);
- void seekAudio(qint64 time);
// helper functions
void deinit();
diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp
index cce4e9801..be9e98feb 100644
--- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp
+++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2007-2008 by Ilya Kotov *
+ * Copyright (C) 2007-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -75,11 +75,9 @@ const DecoderProperties DecoderSndFileFactory::properties() const
return properties;
}
-Decoder *DecoderSndFileFactory::create(QObject *parent, QIODevice *input,
- Output *output, const QString &path)
+Decoder *DecoderSndFileFactory::create(const QString &path, QIODevice *)
{
- Q_UNUSED(input);
- return new DecoderSndFile(parent, this, output, path);
+ return new DecoderSndFile(path);
}
QList<FileInfo *> DecoderSndFileFactory::createPlayList(const QString &fileName, bool useMetaData)
@@ -119,10 +117,8 @@ QList<FileInfo *> DecoderSndFileFactory::createPlayList(const QString &fileName,
return list;
}
-QObject* DecoderSndFileFactory::showDetails(QWidget *parent, const QString &path)
+MetaDataModel* DecoderSndFileFactory::createMetaDataModel(const QString&, QObject *)
{
- Q_UNUSED(parent);
- Q_UNUSED(path);
return 0;
}
@@ -147,4 +143,4 @@ QTranslator *DecoderSndFileFactory::createTranslator(QObject *parent)
return translator;
}
-Q_EXPORT_PLUGIN(DecoderSndFileFactory)
+Q_EXPORT_PLUGIN2(sndfile, DecoderSndFileFactory)
diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.h b/src/plugins/Input/sndfile/decodersndfilefactory.h
index 0a5b160e5..2c8a34523 100644
--- a/src/plugins/Input/sndfile/decodersndfilefactory.h
+++ b/src/plugins/Input/sndfile/decodersndfilefactory.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2007-2008 by Ilya Kotov *
+ * Copyright (C) 2007-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -30,9 +30,6 @@
#include <qmmp/decoderfactory.h>
#include <qmmp/fileinfo.h>
-
-
-
class DecoderSndFileFactory : public QObject,
DecoderFactory
{
@@ -43,9 +40,9 @@ public:
bool supports(const QString &source) const;
bool canDecode(QIODevice *input) const;
const DecoderProperties properties() const;
- Decoder *create(QObject *, QIODevice *, Output *, const QString &path);
+ Decoder *create(const QString &path, QIODevice *);
QList<FileInfo *> createPlayList(const QString &fileName, bool useMetaData);
- QObject* showDetails(QWidget *parent, const QString &path);
+ MetaDataModel* createMetaDataModel(const QString &path, QObject *parent = 0);
void showSettings(QWidget *parent);
void showAbout(QWidget *parent);
QTranslator *createTranslator(QObject *parent);
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts
index ab078bd0d..28c04a70c 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts
@@ -14,22 +14,22 @@
<translation>Soubory PCM</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>O modulu Sndfile</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Vstupní modul Qmmp Sndfile</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Zkompilováno s</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Autor: Ilja Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts
index 8ebf2e136..11f431e88 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts
@@ -14,22 +14,22 @@
<translation>PCM-Dateien</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Über Sndfile-Audio-Modul</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Qmmp Sndfile-Audio-Modul</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Kompiliert gegen</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Autor: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts
index e2c33fbd4..e03d61a1c 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts
@@ -14,22 +14,22 @@
<translation>Brani PCM</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Info sul modulo audio Sndfile</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Modulo audio Sndfile per Qmmp</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Compilato su</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Autore: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts
index cecaa45ea..39ef4efcf 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="1.1" language="lt">
-<defaultcodec></defaultcodec>
+<!DOCTYPE TS>
+<TS version="2.0" language="lt">
<context>
<name>DecoderSndFileFactory</name>
<message>
- <location filename="../decodersndfilefactory.cpp" line="65"/>
+ <location filename="../decodersndfilefactory.cpp" line="66"/>
<source>Sndfile Plugin</source>
<translation>Sndfile įskiepis</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="67"/>
+ <location filename="../decodersndfilefactory.cpp" line="68"/>
<source>PCM Files</source>
<translation>PCM bylos</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="127"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Apie Sndfile Audio įskiepį</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="128"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Qmmp Sndfile Audio įskiepis</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="129"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Compiled against</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="130"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Sukūrė: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts
index 9124f19b7..70426ece5 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts
@@ -14,22 +14,22 @@
<translation>Pliki PCM</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>O wtyczce Sndfile Audio</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Wtyczka Sndfile Audio dla Qmmp</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Skompilowano przy użyciu</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Autor: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts
index 1f7262ec6..5842f2dc8 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts
@@ -14,22 +14,22 @@
<translation>Файлы PCM</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Об аудио-модуле Sndfile</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Модуль SndFile для Qmmp</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Собрано с</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Разработчик: Илья Котов &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts
index a66316108..9fd98c7c1 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts
@@ -14,22 +14,22 @@
<translation>PCM Dosyaları</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Sndfile Ses Eklentisi Hakkında</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Qmmp Sndfile Ses Eklentisi</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Derlendi</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Yazan: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts
index 06d72eba5..23acc3081 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts
@@ -14,22 +14,22 @@
<translation>Файли PCM</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>Про аудіо-модуль Sndfile</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Модуль SndFile для Qmmp</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>Зкомпільовано з</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>Розробник: Ілля Котов &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts
index 172f8ddfe..13fa4d9e1 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts
@@ -14,22 +14,22 @@
<translation>PCM 文件</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>关于 Sndfile 音频插件</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Qmmp Sndfile 音频插件</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>编译依赖</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>作者:Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts
index cbc9f15f1..c36795f2b 100644
--- a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts
+++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts
@@ -14,22 +14,22 @@
<translation>PCM 檔案</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="136"/>
+ <location filename="../decodersndfilefactory.cpp" line="132"/>
<source>About Sndfile Audio Plugin</source>
<translation>關於 Sndfile 聲訊插件</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="137"/>
+ <location filename="../decodersndfilefactory.cpp" line="133"/>
<source>Qmmp Sndfile Audio Plugin</source>
<translation>Qmmp Sndfile 聲訊插件</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="138"/>
+ <location filename="../decodersndfilefactory.cpp" line="134"/>
<source>Compiled against</source>
<translation>編譯依賴於</translation>
</message>
<message>
- <location filename="../decodersndfilefactory.cpp" line="139"/>
+ <location filename="../decodersndfilefactory.cpp" line="135"/>
<source>Writen by: Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</source>
<translation>作者:Ilya Kotov &lt;forkotov02@hotmail.ru&gt;</translation>
</message>
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp
index e8f8d8d90..6c56d92bc 100644
--- a/src/qmmpui/detailsdialog.cpp
+++ b/src/qmmpui/detailsdialog.cpp
@@ -52,6 +52,9 @@ DetailsDialog::DetailsDialog(AbstractPlaylistItem *item, QWidget *parent)
else
return;
+ if(!m_metaDataModel)
+ return;
+
foreach(TagModel *tagModel, m_metaDataModel->tags())
{
ui.tabWidget->addTab(new TagEditor(tagModel, this), tagModel->name());