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
cf085af1
Commit
cf085af1
authored
Nov 11, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Move up gst_segment_init to prevent a theoretical race condition.
parent
58ff7a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gstdemux.c
dlls/winegstreamer/gstdemux.c
+3
-3
No files found.
dlls/winegstreamer/gstdemux.c
View file @
cf085af1
...
...
@@ -396,9 +396,9 @@ static gboolean event_sink(GstPad *pad, GstEvent *event) {
IPin_BeginFlush
(
pin
->
pin
.
pin
.
pConnectedTo
);
return
1
;
case
GST_EVENT_FLUSH_STOP
:
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
if
(
pin
->
pin
.
pin
.
pConnectedTo
)
IPin_EndFlush
(
pin
->
pin
.
pin
.
pConnectedTo
);
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
return
1
;
default:
FIXME
(
"%p stub %s
\n
"
,
event
,
gst_event_type_get_name
(
event
->
type
));
...
...
@@ -746,12 +746,12 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, gboolean last, GS
pin
->
isaud
=
isaud
;
pin
->
isvid
=
isvid
;
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
ret
=
gst_pad_link
(
pad
,
mypad
);
gst_pad_activate_push
(
mypad
,
1
);
FIXME
(
"Linking: %i
\n
"
,
ret
);
if
(
ret
>=
0
)
{
pin
->
their_src
=
pad
;
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
gst_object_ref
(
pin
->
their_src
);
}
}
...
...
@@ -772,9 +772,9 @@ static void existing_new_pad(GstElement *bin, GstPad *pad, gboolean last, GSTImp
for
(
x
=
0
;
x
<
This
->
cStreams
;
++
x
)
{
GSTOutPin
*
pin
=
This
->
ppPins
[
x
];
if
(
!
pin
->
their_src
)
{
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
if
(
gst_pad_link
(
pad
,
pin
->
my_sink
)
>=
0
)
{
pin
->
their_src
=
pad
;
gst_segment_init
(
pin
->
segment
,
GST_FORMAT_TIME
);
gst_object_ref
(
pin
->
their_src
);
TRACE
(
"Relinked
\n
"
);
LeaveCriticalSection
(
&
This
->
filter
.
csFilter
);
...
...
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