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
7fef7470
Commit
7fef7470
authored
Sep 09, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Request the wm_reader stream only when necessary.
parent
68cc41ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+2
-3
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
7fef7470
...
...
@@ -125,7 +125,6 @@ static void callback_thread_run(struct async_reader *reader)
{
IWMReaderCallbackAdvanced
*
callback_advanced
=
reader
->
callback_advanced
;
IWMReaderCallback
*
callback
=
reader
->
callback
;
struct
wm_stream
*
stream
;
static
const
DWORD
zero
;
QWORD
pts
,
duration
;
WORD
stream_number
;
...
...
@@ -141,10 +140,10 @@ static void callback_thread_run(struct async_reader *reader)
if
(
hr
!=
S_OK
)
break
;
stream
=
wm_reader_get_stream_by_stream_number
(
&
reader
->
reader
,
stream_number
);
if
(
async_reader_wait_pts
(
reader
,
pts
))
{
struct
wm_stream
*
stream
=
wm_reader_get_stream_by_stream_number
(
&
reader
->
reader
,
stream_number
);
LeaveCriticalSection
(
&
reader
->
callback_cs
);
if
(
stream
->
read_compressed
)
hr
=
IWMReaderCallbackAdvanced_OnStreamSample
(
callback_advanced
,
...
...
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