TagLibVFSStream: fix initialization of m_bIsReadOnly
authorKarlson2k <k2k@narod.ru>
Sun, 25 May 2014 09:06:40 +0000 (13:06 +0400)
committerKarlson2k <k2k@narod.ru>
Sun, 25 May 2014 22:57:17 +0000 (02:57 +0400)
xbmc/music/tags/TagLibVFSStream.cpp

index 3d52ae9..040d160 100644 (file)
@@ -51,6 +51,7 @@ TagLibVFSStream::TagLibVFSStream(const string& strFileName, bool readOnly)
       m_bIsOpen = false;
   }
   m_strFileName = strFileName;
+  m_bIsReadOnly = readOnly || !m_bIsOpen;
 }
 
 /*!