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
41e53a12
Commit
41e53a12
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: Factor out free_stream().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45ebc26d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
gstdemux.c
dlls/winegstreamer/gstdemux.c
+13
-10
No files found.
dlls/winegstreamer/gstdemux.c
View file @
41e53a12
...
...
@@ -2456,17 +2456,8 @@ static void source_disconnect(struct strmbase_source *iface)
stream
->
enabled
=
false
;
}
static
void
free_s
ource_pin
(
struct
parser_source
*
pin
)
static
void
free_s
tream
(
struct
wg_parser_stream
*
stream
)
{
struct
wg_parser_stream
*
stream
=
pin
->
wg_stream
;
if
(
pin
->
pin
.
pin
.
peer
)
{
if
(
SUCCEEDED
(
IMemAllocator_Decommit
(
pin
->
pin
.
pAllocator
)))
IPin_Disconnect
(
pin
->
pin
.
pin
.
peer
);
IPin_Disconnect
(
&
pin
->
pin
.
pin
.
IPin_iface
);
}
if
(
stream
->
their_src
)
{
if
(
stream
->
post_sink
)
...
...
@@ -2488,6 +2479,18 @@ static void free_source_pin(struct parser_source *pin)
pthread_cond_destroy
(
&
stream
->
event_empty_cond
);
free
(
stream
);
}
static
void
free_source_pin
(
struct
parser_source
*
pin
)
{
if
(
pin
->
pin
.
pin
.
peer
)
{
if
(
SUCCEEDED
(
IMemAllocator_Decommit
(
pin
->
pin
.
pAllocator
)))
IPin_Disconnect
(
pin
->
pin
.
pin
.
peer
);
IPin_Disconnect
(
&
pin
->
pin
.
pin
.
IPin_iface
);
}
free_stream
(
pin
->
wg_stream
);
pin
->
flushing_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
pin
->
flushing_cs
);
...
...
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