Ticket #1761: detect_lc_dvd.diff
File detect_lc_dvd.diff, 958 bytes (added by , 18 years ago) |
---|
-
mythcdrom.cpp
16 16 #ifndef PATHTO_DVD_DETECT 17 17 #define PATHTO_DVD_DETECT "/VIDEO_TS" 18 18 #endif 19 #ifndef PATHTO_DVD_LC_DETECT 20 #define PATHTO_DVD_LC_DETECT "/video_ts" 21 #endif 19 22 20 23 #ifndef PATHTO_VCD_DETECT 21 24 #define PATHTO_VCD_DETECT "/vcd" … … 74 77 DetectPath.sprintf("%s%s", (const char*)m_MountPath, PATHTO_DVD_DETECT); 75 78 VERBOSE(VB_IMPORTANT, QString("Looking for: '%1'").arg(DetectPath)); 76 79 80 DetectPath2.sprintf("%s%s", (const char*)m_MountPath, PATHTO_DVD_LC_DETECT); 81 VERBOSE(VB_IMPORTANT, QString("Looking for: '%1'").arg(DetectPath2)); 82 77 83 struct stat sbuf; 78 if (stat(DetectPath, &sbuf) == 0 )84 if (stat(DetectPath, &sbuf) == 0 || stat(DetectPath2, &sbuf) == 0) 79 85 { 80 86 VERBOSE(VB_GENERAL, "Probable DVD detected."); 81 87 m_MediaType = MEDIATYPE_DVD;