aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-12-02 09:39:17 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-12-02 09:39:17 +0000
commit798c578f8e1ff40a0c39bd6302d8df80ab81b8fb (patch)
treedbf64b448baebc6c9a3007d4ce47ff9eae27d13c /src/plugins/Input/cdaudio/decodercdaudiofactory.cpp
parent8a72e0d67cb208957842883433f8bcb3e9ceb558 (diff)
downloadqmmp-798c578f8e1ff40a0c39bd6302d8df80ab81b8fb.tar.gz
qmmp-798c578f8e1ff40a0c39bd6302d8df80ab81b8fb.tar.bz2
qmmp-798c578f8e1ff40a0c39bd6302d8df80ab81b8fb.zip
cdaudio: fixed regression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8473 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cdaudio/decodercdaudiofactory.cpp')
-rw-r--r--src/plugins/Input/cdaudio/decodercdaudiofactory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp b/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp
index 2f030bcb8..9fca3c1fe 100644
--- a/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp
+++ b/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp
@@ -19,7 +19,6 @@
***************************************************************************/
#include <QMessageBox>
-#include <QRegExp>
#include <cdio/version.h>
#include <cddb/version.h>
#include "settingsdialog.h"
@@ -55,9 +54,12 @@ Decoder *DecoderCDAudioFactory::create(const QString &url, QIODevice *input)
QList<TrackInfo *> DecoderCDAudioFactory::createPlayList(const QString &path, TrackInfo::Parts parts, QStringList *)
{
QList<TrackInfo*> list;
+
+ if(path.contains("#"))
+ return list;
+
QString device_path = path;
device_path.remove("cdda://");
- device_path.remove(QRegExp("#\\d+$"));
QList <CDATrack> tracks = DecoderCDAudio::generateTrackList(device_path, parts);
foreach(CDATrack t, tracks)
{