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
160b4093
Commit
160b4093
authored
Mar 19, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Implement GetServiceForStream() for media source.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9dd9602d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
main.c
dlls/mfreadwrite/main.c
+33
-4
No files found.
dlls/mfreadwrite/main.c
View file @
160b4093
...
...
@@ -25,7 +25,6 @@
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "ole2.h"
#include "rpcproxy.h"
...
...
@@ -288,9 +287,39 @@ static HRESULT WINAPI src_reader_Flush(IMFSourceReader *iface, DWORD index)
static
HRESULT
WINAPI
src_reader_GetServiceForStream
(
IMFSourceReader
*
iface
,
DWORD
index
,
REFGUID
service
,
REFIID
riid
,
void
**
object
)
{
srcreader
*
This
=
impl_from_IMFSourceReader
(
iface
);
FIXME
(
"%p, 0x%08x, %s, %s, %p
\n
"
,
This
,
index
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
object
);
return
E_NOTIMPL
;
struct
source_reader
*
reader
=
impl_from_IMFSourceReader
(
iface
);
IUnknown
*
obj
=
NULL
;
HRESULT
hr
;
TRACE
(
"%p, %#x, %s, %s, %p
\n
"
,
iface
,
index
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
object
);
switch
(
index
)
{
case
MF_SOURCE_READER_MEDIASOURCE
:
obj
=
(
IUnknown
*
)
reader
->
source
;
break
;
default:
FIXME
(
"Unsupported index %#x.
\n
"
,
index
);
return
E_NOTIMPL
;
}
if
(
IsEqualGUID
(
service
,
&
GUID_NULL
))
{
hr
=
IUnknown_QueryInterface
(
obj
,
riid
,
object
);
}
else
{
IMFGetService
*
gs
;
hr
=
IUnknown_QueryInterface
(
obj
,
&
IID_IMFGetService
,
(
void
**
)
&
gs
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IMFGetService_GetService
(
gs
,
service
,
riid
,
object
);
IMFGetService_Release
(
gs
);
}
}
return
hr
;
}
static
HRESULT
WINAPI
src_reader_GetPresentationAttribute
(
IMFSourceReader
*
iface
,
DWORD
index
,
...
...
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