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
b8d10aa4
Commit
b8d10aa4
authored
Oct 22, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Create sample allocators on demand.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6512b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
evr.c
dlls/mf/evr.c
+14
-4
No files found.
dlls/mf/evr.c
View file @
b8d10aa4
...
...
@@ -528,13 +528,26 @@ static ULONG WINAPI video_stream_get_service_Release(IMFGetService *iface)
static
HRESULT
WINAPI
video_stream_get_service_GetService
(
IMFGetService
*
iface
,
REFGUID
service
,
REFIID
riid
,
void
**
obj
)
{
struct
video_stream
*
stream
=
impl_from_stream_IMFGetService
(
iface
);
HRESULT
hr
=
S_OK
;
TRACE
(
"%p, %s, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualGUID
(
service
,
&
MR_VIDEO_ACCELERATION_SERVICE
))
{
if
(
IsEqualIID
(
riid
,
&
IID_IMFVideoSampleAllocator
))
return
IMFVideoSampleAllocator_QueryInterface
(
stream
->
allocator
,
riid
,
obj
);
{
EnterCriticalSection
(
&
stream
->
cs
);
if
(
!
stream
->
allocator
)
hr
=
MFCreateVideoSampleAllocator
(
&
IID_IMFVideoSampleAllocator
,
(
void
**
)
&
stream
->
allocator
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMFVideoSampleAllocator_QueryInterface
(
stream
->
allocator
,
riid
,
obj
);
LeaveCriticalSection
(
&
stream
->
cs
);
return
hr
;
}
return
E_NOINTERFACE
;
}
...
...
@@ -569,9 +582,6 @@ static HRESULT video_renderer_stream_create(struct video_renderer *renderer, uns
if
(
FAILED
(
hr
=
MFCreateEventQueue
(
&
stream
->
event_queue
)))
goto
failed
;
if
(
FAILED
(
hr
=
MFCreateVideoSampleAllocator
(
&
IID_IMFVideoSampleAllocator
,
(
void
**
)
&
stream
->
allocator
)))
goto
failed
;
stream
->
parent
=
renderer
;
IMFMediaSink_AddRef
(
&
stream
->
parent
->
IMFMediaSink_iface
);
stream
->
id
=
id
;
...
...
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