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
fa72a28c
Commit
fa72a28c
authored
Feb 10, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of current sample tracking.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f9ce687
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
renderer.c
dlls/strmbase/renderer.c
+0
-17
strmbase.h
include/wine/strmbase.h
+0
-2
No files found.
dlls/strmbase/renderer.c
View file @
fa72a28c
...
...
@@ -84,7 +84,6 @@ static HRESULT renderer_init_stream(struct strmbase_filter *iface)
if
(
filter
->
sink
.
pin
.
peer
)
ResetEvent
(
filter
->
state_event
);
filter
->
eos
=
FALSE
;
BaseRendererImpl_ClearPendingSample
(
filter
);
ResetEvent
(
filter
->
flush_event
);
if
(
filter
->
pFuncsTable
->
renderer_init_stream
)
filter
->
pFuncsTable
->
renderer_init_stream
(
filter
);
...
...
@@ -228,7 +227,6 @@ static HRESULT sink_begin_flush(struct strmbase_sink *iface)
{
struct
strmbase_renderer
*
filter
=
impl_from_IPin
(
&
iface
->
pin
.
IPin_iface
);
BaseRendererImpl_ClearPendingSample
(
filter
);
SetEvent
(
filter
->
flush_event
);
return
S_OK
;
...
...
@@ -279,7 +277,6 @@ void strmbase_renderer_cleanup(struct strmbase_renderer *filter)
filter
->
csRenderLock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
csRenderLock
);
BaseRendererImpl_ClearPendingSample
(
filter
);
CloseHandle
(
filter
->
state_event
);
CloseHandle
(
filter
->
advise_event
);
CloseHandle
(
filter
->
flush_event
);
...
...
@@ -313,9 +310,6 @@ HRESULT WINAPI BaseRendererImpl_Receive(struct strmbase_renderer *This, IMediaSa
DeleteMediaType
(
pmt
);
}
This
->
pMediaSample
=
pSample
;
IMediaSample_AddRef
(
pSample
);
if
(
This
->
pFuncsTable
->
pfnPrepareReceive
)
hr
=
This
->
pFuncsTable
->
pfnPrepareReceive
(
This
,
pSample
);
if
(
FAILED
(
hr
))
...
...
@@ -388,22 +382,11 @@ HRESULT WINAPI BaseRendererImpl_Receive(struct strmbase_renderer *This, IMediaSa
QualityControlRender_DoQOS
(
This
->
qcimpl
);
BaseRendererImpl_ClearPendingSample
(
This
);
LeaveCriticalSection
(
&
This
->
csRenderLock
);
return
hr
;
}
HRESULT
WINAPI
BaseRendererImpl_ClearPendingSample
(
struct
strmbase_renderer
*
iface
)
{
if
(
iface
->
pMediaSample
)
{
IMediaSample_Release
(
iface
->
pMediaSample
);
iface
->
pMediaSample
=
NULL
;
}
return
S_OK
;
}
HRESULT
WINAPI
strmbase_renderer_init
(
struct
strmbase_renderer
*
filter
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
struct
strmbase_renderer_ops
*
ops
)
{
...
...
include/wine/strmbase.h
View file @
fa72a28c
...
...
@@ -483,7 +483,6 @@ struct strmbase_renderer
/* Signaled when a flush or state change occurs, i.e. anything that needs
* to immediately unblock the streaming thread. */
HANDLE
flush_event
;
IMediaSample
*
pMediaSample
;
REFERENCE_TIME
stream_start
;
IQualityControl
*
pQSink
;
...
...
@@ -522,7 +521,6 @@ struct strmbase_renderer_ops
HRESULT
(
*
renderer_pin_query_interface
)(
struct
strmbase_renderer
*
iface
,
REFIID
iid
,
void
**
out
);
};
HRESULT
WINAPI
BaseRendererImpl_ClearPendingSample
(
struct
strmbase_renderer
*
filter
);
HRESULT
WINAPI
BaseRendererImpl_Receive
(
struct
strmbase_renderer
*
filter
,
IMediaSample
*
sample
);
HRESULT
WINAPI
strmbase_renderer_init
(
struct
strmbase_renderer
*
filter
,
IUnknown
*
outer
,
...
...
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