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
cd27f3ca
Commit
cd27f3ca
authored
Feb 01, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Duplicate the "sink_connected" field in struct wg_parser.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5736cb23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gstdemux.c
dlls/winegstreamer/gstdemux.c
+7
-5
No files found.
dlls/winegstreamer/gstdemux.c
View file @
cd27f3ca
...
...
@@ -69,7 +69,7 @@ struct wg_parser
GstFlowReturn
ret
;
}
read_request
;
bool
flushing
;
bool
flushing
,
sink_connected
;
};
struct
parser
...
...
@@ -1188,12 +1188,12 @@ static DWORD CALLBACK read_thread(void *arg)
pthread_mutex_lock
(
&
filter
->
mutex
);
for
(;;
)
while
(
filter
->
sink_connected
)
{
while
(
filt
er
->
sink_connected
&&
!
parser
->
read_request
.
buffer
)
while
(
pars
er
->
sink_connected
&&
!
parser
->
read_request
.
buffer
)
pthread_cond_wait
(
&
parser
->
read_cond
,
&
filter
->
mutex
);
if
(
!
filt
er
->
sink_connected
)
if
(
!
pars
er
->
sink_connected
)
break
;
parser
->
read_request
.
done
=
true
;
...
...
@@ -1593,6 +1593,7 @@ static HRESULT GST_Connect(struct parser *This, IPin *pConnectPin)
parser
->
file_size
=
This
->
file_size
;
This
->
sink_connected
=
true
;
parser
->
sink_connected
=
true
;
This
->
read_thread
=
CreateThread
(
NULL
,
0
,
read_thread
,
This
,
0
,
NULL
);
...
...
@@ -2541,8 +2542,9 @@ static HRESULT GST_RemoveOutputPins(struct parser *This)
/* read_thread() needs to stay alive to service any read requests GStreamer
* sends, so we can only shut it down after GStreamer stops. */
pthread_mutex_lock
(
&
This
->
mutex
);
This
->
sink_connected
=
false
;
pthread_mutex_lock
(
&
This
->
mutex
);
parser
->
sink_connected
=
false
;
pthread_mutex_unlock
(
&
This
->
mutex
);
pthread_cond_signal
(
&
parser
->
read_cond
);
WaitForSingleObject
(
This
->
read_thread
,
INFINITE
);
...
...
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