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
407aba30
Commit
407aba30
authored
Sep 24, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Return no buffer when wg_parser stream is disabled.
parent
042c1cef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wg_parser.c
dlls/winegstreamer/wg_parser.c
+2
-2
No files found.
dlls/winegstreamer/wg_parser.c
View file @
407aba30
...
...
@@ -268,7 +268,7 @@ static GstBuffer *wait_parser_stream_buffer(struct wg_parser *parser, struct wg_
/* Note that we can both have a buffer and stream->eos, in which case we
* must return the buffer. */
while
(
!
(
buffer
=
stream
->
buffer
)
&&
!
stream
->
eos
)
while
(
stream
->
enabled
&&
!
(
buffer
=
stream
->
buffer
)
&&
!
stream
->
eos
)
pthread_cond_wait
(
&
stream
->
event_cond
,
&
parser
->
mutex
);
return
buffer
;
...
...
@@ -308,7 +308,7 @@ static NTSTATUS wg_parser_stream_get_buffer(void *args)
for
(
i
=
0
;
i
<
parser
->
stream_count
;
++
i
)
{
if
(
!
parser
->
streams
[
i
]
->
enabled
||
!
(
buffer
=
wait_parser_stream_buffer
(
parser
,
parser
->
streams
[
i
])))
if
(
!
(
buffer
=
wait_parser_stream_buffer
(
parser
,
parser
->
streams
[
i
])))
continue
;
/* invalid PTS is GST_CLOCK_TIME_NONE == (guint64)-1, so this will prefer valid timestamps. */
if
(
!
earliest
||
GST_BUFFER_PTS
(
buffer
)
<
GST_BUFFER_PTS
(
earliest
))
...
...
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