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
cb2d4027
Commit
cb2d4027
authored
Jan 22, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Update transform filters to use the correct csReceive critical section.
parent
0eb9740e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gsttffilter.c
dlls/winegstreamer/gsttffilter.c
+5
-5
No files found.
dlls/winegstreamer/gsttffilter.c
View file @
cb2d4027
...
...
@@ -225,11 +225,11 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
int
ret
;
TRACE
(
"Reading %p
\n
"
,
sample
);
EnterCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
EnterCriticalSection
(
&
This
->
tf
.
csReceive
);
IMediaSample_GetPointer
(
sample
,
&
data
);
buf
=
gst_app_buffer_new
(
data
,
IMediaSample_GetActualDataLength
(
sample
),
release_sample
,
sample
);
if
(
!
buf
)
{
LeaveCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
LeaveCriticalSection
(
&
This
->
tf
.
csReceive
);
return
S_OK
;
}
gst_buffer_set_caps
(
buf
,
gst_pad_get_caps_reffed
(
This
->
my_src
));
...
...
@@ -251,7 +251,7 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
GST_BUFFER_FLAG_SET
(
buf
,
GST_BUFFER_FLAG_PREROLL
);
if
(
IMediaSample_IsSyncPoint
(
sample
)
!=
S_OK
)
GST_BUFFER_FLAG_SET
(
buf
,
GST_BUFFER_FLAG_DELTA_UNIT
);
LeaveCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
LeaveCriticalSection
(
&
This
->
tf
.
csReceive
);
ret
=
gst_pad_push
(
This
->
my_src
,
buf
);
if
(
ret
)
WARN
(
"Sending returned: %i
\n
"
,
ret
);
...
...
@@ -268,9 +268,9 @@ static HRESULT WINAPI Gstreamer_transform_ProcessEnd(TransformFilter *iface) {
GstTfImpl
*
This
=
(
GstTfImpl
*
)
iface
;
int
ret
;
LeaveCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
LeaveCriticalSection
(
&
This
->
tf
.
csReceive
);
ret
=
gst_element_set_state
(
This
->
filter
,
GST_STATE_READY
);
EnterCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
EnterCriticalSection
(
&
This
->
tf
.
csReceive
);
TRACE
(
"Returned: %i
\n
"
,
ret
);
return
S_OK
;
}
...
...
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