Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3412b419
Commit
3412b419
authored
Nov 03, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: MCI_OPEN @NNNN should use an open AVIFile/Stream handle.
parent
2e540193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
mciavi.c
dlls/mciavi32/mciavi.c
+10
-2
No files found.
dlls/mciavi32/mciavi.c
View file @
3412b419
...
...
@@ -26,11 +26,13 @@
* - synchronization between audio and video (especially for interleaved
* files)
* - robustness when reading file can be enhanced
* - better move the AVI handling part to avifile DLL and make use of it
* - reimplement the AVI handling part with avifile DLL because
* "open @1122334 type avivideo alias a" expects an AVIFile/Stream
* and MCI_DGV_SET|STATUS_SPEED maps to Rate/Scale
* - some files appear to have more than one audio stream (we only play the
* first one)
* - some files contain an index of audio/video frame. Better use it,
* instead of rebuilding it
* instead of rebuilding it
(AVIFile does that already)
* - stopping while playing a file with sound blocks until all buffered
* audio is played... still should be stopped ASAP
*/
...
...
@@ -256,6 +258,12 @@ static DWORD MCIAVI_mciOpen(UINT wDevID, DWORD dwFlags,
wma
->
lpFileName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
lpOpenParms
->
lpstrElementName
)
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
wma
->
lpFileName
,
lpOpenParms
->
lpstrElementName
);
if
(
lpOpenParms
->
lpstrElementName
[
0
]
==
'@'
)
{
/* The file name @11223344 encodes an AVIFile handle in decimal notation
* in Win3.1 and w2k/NT, but this feature is absent in win95 (KB140750).
* wma->hFile = LongToHandle(strtolW(lpOpenParms->lpstrElementName+1, NULL, 10)); */
FIXME
(
"Using AVIFile/Stream %s NIY
\n
"
,
debugstr_w
(
lpOpenParms
->
lpstrElementName
));
}
wma
->
hFile
=
mmioOpenW
(
lpOpenParms
->
lpstrElementName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_DENYWRITE
|
MMIO_READ
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment