Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0c2f1121
Commit
0c2f1121
authored
May 05, 2022
by
Andrew Eikum
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Consolidate stream and file IMFByteStream Read/Write callback vtables.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
411ef13e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
42 deletions
+10
-42
main.c
dlls/mfplat/main.c
+10
-42
No files found.
dlls/mfplat/main.c
View file @
0c2f1121
...
...
@@ -4369,7 +4369,7 @@ static const IMFAttributesVtbl bytestream_attributes_vtbl =
mfattributes_CopyAllItems
};
static
HRESULT
WINAPI
bytestream_
stream_
read_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
static
HRESULT
WINAPI
bytestream_read_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
{
struct
bytestream
*
stream
=
impl_from_read_callback_IRtwqAsyncCallback
(
iface
);
struct
async_stream_op
*
op
;
...
...
@@ -4395,7 +4395,7 @@ static HRESULT WINAPI bytestream_stream_read_callback_Invoke(IRtwqAsyncCallback
return
S_OK
;
}
static
HRESULT
WINAPI
bytestream_
stream_
write_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
static
HRESULT
WINAPI
bytestream_write_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
{
struct
bytestream
*
stream
=
impl_from_read_callback_IRtwqAsyncCallback
(
iface
);
struct
async_stream_op
*
op
;
...
...
@@ -4421,22 +4421,22 @@ static HRESULT WINAPI bytestream_stream_write_callback_Invoke(IRtwqAsyncCallback
return
S_OK
;
}
static
const
IRtwqAsyncCallbackVtbl
bytestream_
stream_
read_callback_vtbl
=
static
const
IRtwqAsyncCallbackVtbl
bytestream_read_callback_vtbl
=
{
bytestream_callback_QueryInterface
,
bytestream_read_callback_AddRef
,
bytestream_read_callback_Release
,
bytestream_callback_GetParameters
,
bytestream_
stream_
read_callback_Invoke
,
bytestream_read_callback_Invoke
,
};
static
const
IRtwqAsyncCallbackVtbl
bytestream_
stream_
write_callback_vtbl
=
static
const
IRtwqAsyncCallbackVtbl
bytestream_write_callback_vtbl
=
{
bytestream_callback_QueryInterface
,
bytestream_write_callback_AddRef
,
bytestream_write_callback_Release
,
bytestream_callback_GetParameters
,
bytestream_
stream_
write_callback_Invoke
,
bytestream_write_callback_Invoke
,
};
/***********************************************************************
...
...
@@ -4462,8 +4462,8 @@ HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **byt
object
->
IMFByteStream_iface
.
lpVtbl
=
&
bytestream_stream_vtbl
;
object
->
attributes
.
IMFAttributes_iface
.
lpVtbl
=
&
bytestream_attributes_vtbl
;
object
->
read_callback
.
lpVtbl
=
&
bytestream_
stream_
read_callback_vtbl
;
object
->
write_callback
.
lpVtbl
=
&
bytestream_
stream_
write_callback_vtbl
;
object
->
read_callback
.
lpVtbl
=
&
bytestream_read_callback_vtbl
;
object
->
write_callback
.
lpVtbl
=
&
bytestream_write_callback_vtbl
;
InitializeCriticalSection
(
&
object
->
cs
);
list_init
(
&
object
->
pending
);
...
...
@@ -4487,38 +4487,6 @@ HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **byt
return
S_OK
;
}
static
HRESULT
WINAPI
bytestream_file_read_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
result
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
bytestream_file_write_callback_Invoke
(
IRtwqAsyncCallback
*
iface
,
IRtwqAsyncResult
*
result
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
result
);
return
E_NOTIMPL
;
}
static
const
IRtwqAsyncCallbackVtbl
bytestream_file_read_callback_vtbl
=
{
bytestream_callback_QueryInterface
,
bytestream_read_callback_AddRef
,
bytestream_read_callback_Release
,
bytestream_callback_GetParameters
,
bytestream_file_read_callback_Invoke
,
};
static
const
IRtwqAsyncCallbackVtbl
bytestream_file_write_callback_vtbl
=
{
bytestream_callback_QueryInterface
,
bytestream_write_callback_AddRef
,
bytestream_write_callback_Release
,
bytestream_callback_GetParameters
,
bytestream_file_write_callback_Invoke
,
};
static
HRESULT
WINAPI
bytestream_file_getservice_QueryInterface
(
IMFGetService
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
bytestream
*
stream
=
impl_bytestream_from_IMFGetService
(
iface
);
...
...
@@ -4625,8 +4593,8 @@ static HRESULT create_file_bytestream(MF_FILE_ACCESSMODE accessmode, MF_FILE_OPE
object
->
IMFByteStream_iface
.
lpVtbl
=
&
bytestream_file_vtbl
;
object
->
attributes
.
IMFAttributes_iface
.
lpVtbl
=
&
bytestream_attributes_vtbl
;
object
->
IMFGetService_iface
.
lpVtbl
=
&
bytestream_file_getservice_vtbl
;
object
->
read_callback
.
lpVtbl
=
&
bytestream_
file_
read_callback_vtbl
;
object
->
write_callback
.
lpVtbl
=
&
bytestream_
file_
write_callback_vtbl
;
object
->
read_callback
.
lpVtbl
=
&
bytestream_read_callback_vtbl
;
object
->
write_callback
.
lpVtbl
=
&
bytestream_write_callback_vtbl
;
InitializeCriticalSection
(
&
object
->
cs
);
list_init
(
&
object
->
pending
);
object
->
capabilities
=
capabilities
;
...
...
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