~x3lectric/xbmc/svn-trunk

« back to all changes in this revision

Viewing changes to xbmc/DetectDVDType.cpp

  • Committer: tslayer
  • Date: 2004-08-05 23:57:52 UTC
  • Revision ID: svn-v4:568bbfeb-2a22-0410-94d2-cc84cf5bfa90:trunk/XBMC:1846
  - fixed: Fallback skin is now Project Mayhem and not MediaCenter

  - fixed: Only use directory name as description for default.xbe

  - added: Different Log Levels can now be specified.  Default is NOTICE.

         . Please note that the default loglevel is NOTICE.
         . The LogLevels that can be used are defined in utils/log.h
         . I've changed some of the Log statements to use the loglevel
           as I saw fit, but please change if you feel it should be another
           log level.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
void CDetectDVDMedia::DetectMediaType()
162
162
{
163
163
        bool bCDDA(false);
164
 
        CLog::Log("Detecting DVD-ROM media filesystem...");
 
164
        CLog::Log(LOGINFO, "Detecting DVD-ROM media filesystem...");
165
165
 
166
166
        CStdString strNewUrl;
167
167
        CCdIoSupport cdio;
176
176
        m_pCdInfo = cdio.GetCdInfo();
177
177
        if (m_pCdInfo==NULL) 
178
178
        {
179
 
                CLog::Log("Detection of DVD-ROM media failed.");
 
179
                CLog::Log(LOGERROR, "Detection of DVD-ROM media failed.");
180
180
                return;
181
181
        }
182
 
        CLog::Log("Tracks overall:%i; Audio tracks:%i; Data tracks:%i",
 
182
        CLog::Log(LOGINFO, "Tracks overall:%i; Audio tracks:%i; Data tracks:%i",
183
183
        m_pCdInfo->GetTrackCount(),
184
184
        m_pCdInfo->GetAudioTrackCount(),
185
185
        m_pCdInfo->GetDataTrackCount() );
216
216
                }
217
217
        }
218
218
 
219
 
        CLog::Log("Using protocol %s", strNewUrl.c_str());
 
219
        CLog::Log(LOGINFO, "Using protocol %s", strNewUrl.c_str());
220
220
 
221
221
        if (m_pCdInfo->IsValidFs())
222
222
        {
223
223
                if (!m_pCdInfo->IsAudio(1))
224
 
                        CLog::Log("Disc label: %s", m_pCdInfo->GetDiscLabel().c_str());
 
224
                        CLog::Log(LOGINFO, "Disc label: %s", m_pCdInfo->GetDiscLabel().c_str());
225
225
        }
226
226
        else
227
227
        {
228
 
                CLog::Log("Filesystem is not supported");
 
228
                CLog::Log(LOGWARNING, "Filesystem is not supported");
229
229
        }
230
230
 
231
231
  CStdString strLabel="";
361
361
                // allow the application to poll once every five seconds
362
362
                if ((clock()-m_LastPoll)>5000)
363
363
                {
364
 
                        CLog::Log("Polling PC-DVDROM...");
 
364
                        CLog::Log(LOGINFO, "Polling PC-DVDROM...");
365
365
 
366
366
                        CIoSupport helper;
367
367
                        if (helper.Remount("D:","Cdrom0")==S_OK)