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
072fe5d6
Commit
072fe5d6
authored
Jul 31, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Aug 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Release sample queue when streaming ends.
parent
cff2e87e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
presenter.c
dlls/evr/presenter.c
+13
-0
No files found.
dlls/evr/presenter.c
View file @
072fe5d6
...
...
@@ -467,6 +467,18 @@ static BOOL video_presenter_sample_queue_pop(struct video_presenter *presenter,
return
*
sample
!=
NULL
;
}
static
void
video_presenter_sample_queue_free
(
struct
video_presenter
*
presenter
)
{
struct
sample_queue
*
queue
=
&
presenter
->
thread
.
queue
;
IMFSample
*
sample
;
while
(
video_presenter_sample_queue_pop
(
presenter
,
&
sample
))
IMFSample_Release
(
sample
);
free
(
queue
->
samples
);
}
static
HRESULT
video_presenter_get_sample_surface
(
IMFSample
*
sample
,
IDirect3DSurface9
**
surface
)
{
IMFMediaBuffer
*
buffer
;
...
...
@@ -754,6 +766,7 @@ static HRESULT video_presenter_end_streaming(struct video_presenter *presenter)
if
(
presenter
->
thread
.
queue
.
last_presented
)
IMFSample_Release
(
presenter
->
thread
.
queue
.
last_presented
);
video_presenter_sample_queue_free
(
presenter
);
memset
(
&
presenter
->
thread
,
0
,
sizeof
(
presenter
->
thread
));
video_presenter_set_allocator_callback
(
presenter
,
NULL
);
...
...
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