From 9597e224068505196d6802f05edc6d182a69cd4b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 29 Oct 2016 16:45:19 +0000 Subject: some optimizations git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6815 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/cdaudio/decoder_cdaudio.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins/Input/cdaudio/decoder_cdaudio.cpp') diff --git a/src/plugins/Input/cdaudio/decoder_cdaudio.cpp b/src/plugins/Input/cdaudio/decoder_cdaudio.cpp index 9fa35dbd5..66c753832 100644 --- a/src/plugins/Input/cdaudio/decoder_cdaudio.cpp +++ b/src/plugins/Input/cdaudio/decoder_cdaudio.cpp @@ -129,6 +129,8 @@ QList DecoderCDAudio::generateTrackList(const QString &device) return tracks; } qDebug("DecoderCDAudio: found cd audio capable drive \"%s\"", *cd_drives); + device_path = QString(*cd_drives); + cdio_free_device_list(cd_drives); //free device list } else { @@ -136,9 +138,6 @@ QList DecoderCDAudio::generateTrackList(const QString &device) cdio_free_device_list(cd_drives); return tracks; } - device_path = QString(*cd_drives); - if (cd_drives && *cd_drives) //free device list - cdio_free_device_list(cd_drives); } else { -- cgit v1.2.3-13-gbd6f