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
45ebc26d
Commit
45ebc26d
authored
Feb 04, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use the "streams" array in wg_parser code.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42dc1e93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
gstdemux.c
dlls/winegstreamer/gstdemux.c
+10
-11
No files found.
dlls/winegstreamer/gstdemux.c
View file @
45ebc26d
...
...
@@ -1228,14 +1228,15 @@ static DWORD CALLBACK read_thread(void *arg)
static
void
removed_decoded_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
{
struct
parser
*
filter
=
user
;
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
unsigned
int
i
;
char
*
name
;
GST_LOG
(
"filter %p, bin %p, pad %p."
,
filter
,
bin
,
pad
);
for
(
i
=
0
;
i
<
filter
->
source
_count
;
++
i
)
for
(
i
=
0
;
i
<
parser
->
stream
_count
;
++
i
)
{
struct
wg_parser_stream
*
stream
=
filter
->
sources
[
i
]
->
wg_stream
;
struct
wg_parser_stream
*
stream
=
parser
->
streams
[
i
]
;
if
(
stream
->
their_src
==
pad
)
{
...
...
@@ -1785,14 +1786,12 @@ static HRESULT parser_cleanup_stream(struct strmbase_filter *iface)
parser
->
flushing
=
true
;
pthread_mutex_unlock
(
&
parser
->
mutex
);
for
(
i
=
0
;
i
<
filter
->
source
_count
;
++
i
)
for
(
i
=
0
;
i
<
parser
->
stream
_count
;
++
i
)
{
struct
parser_source
*
pin
=
filter
->
source
s
[
i
];
struct
wg_parser_stream
*
stream
=
parser
->
stream
s
[
i
];
if
(
!
pin
->
pin
.
pin
.
peer
)
continue
;
pthread_cond_signal
(
&
pin
->
wg_stream
->
event_cond
);
if
(
stream
->
enabled
)
pthread_cond_signal
(
&
stream
->
event_cond
);
}
for
(
i
=
0
;
i
<
filter
->
source_count
;
++
i
)
...
...
@@ -2573,10 +2572,10 @@ static HRESULT GST_RemoveOutputPins(struct parser *This)
/* Unblock all of our streams. */
pthread_mutex_lock
(
&
parser
->
mutex
);
for
(
i
=
0
;
i
<
This
->
source
_count
;
++
i
)
for
(
i
=
0
;
i
<
parser
->
stream
_count
;
++
i
)
{
This
->
sources
[
i
]
->
wg_stream
->
flushing
=
true
;
pthread_cond_signal
(
&
This
->
sources
[
i
]
->
wg_stream
->
event_empty_cond
);
parser
->
streams
[
i
]
->
flushing
=
true
;
pthread_cond_signal
(
&
parser
->
streams
[
i
]
->
event_empty_cond
);
}
pthread_mutex_unlock
(
&
parser
->
mutex
);
...
...
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