From 511dc1c92faaff2dde0b019337ba8cca506ebb89 Mon Sep 17 00:00:00 2001
From: Lawrence Rust <lvr@softsystem.co.uk>
Date: Sat, 4 Feb 2012 17:00:51 +0100
Subject: [PATCH] mythmusic: Fix mingw32 compile of cddecoder.cpp

Commit c121c3ac added lidcdio support for CD reading but a number of stylistic
changes were made to my original patch, including renaming some CdDecoder
instance variables (adding an "m_" wart).  Unfortunately some win32
specific code that used these variables wasn't updated.

Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
---
 mythplugins/mythmusic/mythmusic/cddecoder.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mythplugins/mythmusic/mythmusic/cddecoder.cpp b/mythplugins/mythmusic/mythmusic/cddecoder.cpp
index 94ea6cb..4ed58df 100644
--- a/mythplugins/mythmusic/mythmusic/cddecoder.cpp
+++ b/mythplugins/mythmusic/mythmusic/cddecoder.cpp
@@ -125,8 +125,8 @@ void CdDecoder::setDevice(const QString &dev)
     m_devicename = dev;
 #ifdef WIN32
     // libcdio needs the drive letter with no path
-    if (devicename.endsWith('\\'))
-        devicename.chop(1);
+    if (m_devicename.endsWith('\\'))
+        m_devicename.chop(1);
 #endif
 }
 
-- 
1.7.4.1

