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
17283f9b
Commit
17283f9b
authored
Jun 22, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Keep stream reference when creating sample.
parent
139445eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mediastream.c
dlls/amstream/mediastream.c
+3
-0
No files found.
dlls/amstream/mediastream.c
View file @
17283f9b
...
...
@@ -906,6 +906,7 @@ static ULONG WINAPI IDirectDrawStreamSampleImpl_Release(IDirectDrawStreamSample
{
if
(
This
->
surface
)
IDirectDrawSurface_Release
(
This
->
surface
);
IMediaStream_Release
(
This
->
parent
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -1011,6 +1012,8 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
object
->
IDirectDrawStreamSample_iface
.
lpVtbl
=
&
DirectDrawStreamSample_Vtbl
;
object
->
ref
=
1
;
object
->
parent
=
(
IMediaStream
*
)
parent
;
IMediaStream_AddRef
(
object
->
parent
);
if
(
surface
)
{
object
->
surface
=
surface
;
...
...
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