[Bug 39266] New: Microsoft Wine Guide does not play video files with .cp extension
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Sep 12 11:49:29 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=39266
Bug ID: 39266
Summary: Microsoft Wine Guide does not play video files with
.cp extension
Product: Wine
Version: 1.7.51
Hardware: x86-64
OS: Linux
Status: NEW
Keywords: win16
Severity: normal
Priority: P2
Component: winmm&mci
Assignee: wine-bugs at winehq.org
Reporter: 00cpxxx at gmail.com
Distribution: ---
Currently while trying to detect a media type (video, audio file, cd audio)
wine assumes that when the file comes from a CD (GetDriveType() == CDROM) the
path must be a cd audio file.
>From dlls/winmm/mci.c:
1794 /* type, if given as a parameter, supersedes file extension */
1795 if (!strDevTyp[0] &&
1796 MCI_GetDevTypeFromFileName(lpParms->lpstrElementName,
1797 strDevTyp, sizeof(strDevTyp))) {
1798 static const WCHAR wszCdAudio[] = {'C','D','A','U','D','I','O',0};
1799 if (GetDriveTypeW(lpParms->lpstrElementName) != DRIVE_CDROM) {
1800 dwRet = MCIERR_EXTENSION_NOT_FOUND;
1801 goto errCleanUp;
1802 }
1803 /* FIXME: this will not work if several CDROM drives are installed on
the machine */
1804 strcpyW(strDevTyp, wszCdAudio);
1805 }
Relevant log part:
trace:mci:MCIWndProc MCIWNDM_OPENW L"D:\\MSWPTIME\\oz\\Intro.cp"
trace:mci:mciSendCommandW (00000000, MCI_OPEN, 00000602, 007bcc2c)
trace:mci:MCI_Open (00000602, 0x7bcc2c)
trace:mci:MCI_Open lpstrElementName=L"D:\\MSWPTIME\\oz\\Intro.cp"
trace:mci:MCI_GetDevTypeFromFileName No ...\MCI Extensions entry for L".cp"
found.
trace:mci:MCI_Open Alias=L"983243" !
trace:mci:MCI_LoadMciDriver wDevID=0001
trace:mci:mciSetDriverData (0001, 001eeb28)
trace:mci:MCI_LoadMciDriver Loaded driver 0x1eeb00 (L"CDAUDIO"), type is 516,
cmdTable=0000ffff
trace:mci:MCI_LoadMciDriver mcidev=1, uDevTyp=0204 wDeviceID=0001 !
trace:mci:mciGetDriverData (0001)
trace:mcicda:MCICDA_Open (0001, 00000602, 0x7bcc2c);
trace:mcicda:MCICDA_Open MCI_OPEN_ELEMENT element name:
L"D:\\MSWPTIME\\oz\\Intro.cp"
trace:mci:MCI_Open wDevID=0001 wDeviceID=1 dwRet=0
Naturally this fails later because mcicda fails to read the TOC from the CD and
gives up.
Windows plays the videos just fine so I guess wine should try to open the file
and guess a file type.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list