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
21ac8397
Commit
21ac8397
authored
Nov 16, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the unused segment fields from struct strmbase_pin.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70d2ba74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
pin.c
dlls/strmbase/pin.c
+7
-16
strmbase.h
include/wine/strmbase.h
+0
-2
No files found.
dlls/strmbase/pin.c
View file @
21ac8397
...
...
@@ -333,16 +333,10 @@ HRESULT WINAPI BasePinImpl_QueryInternalConnections(IPin * iface, IPin ** apPin,
return
E_NOTIMPL
;
/* to tell caller that all input pins connected to all output pins */
}
HRESULT
WINAPI
BasePinImpl_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
double
dR
ate
)
HRESULT
WINAPI
BasePinImpl_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
start
,
REFERENCE_TIME
stop
,
double
r
ate
)
{
struct
strmbase_pin
*
This
=
impl_from_IPin
(
iface
);
TRACE
(
"iface %p, start %s, stop %s, rate %.16e.
\n
"
,
iface
,
debugstr_time
(
tStart
),
debugstr_time
(
tStop
),
dRate
);
This
->
tStart
=
tStart
;
This
->
tStop
=
tStop
;
This
->
dRate
=
dRate
;
iface
,
debugstr_time
(
start
),
debugstr_time
(
stop
),
rate
);
return
S_OK
;
}
...
...
@@ -696,7 +690,6 @@ void strmbase_source_init(struct strmbase_source *pin, const IPinVtbl *vtbl, str
{
memset
(
pin
,
0
,
sizeof
(
*
pin
));
pin
->
pin
.
IPin_iface
.
lpVtbl
=
vtbl
;
pin
->
pin
.
dRate
=
1
.
0
;
pin
->
pin
.
filter
=
filter
;
pin
->
pin
.
dir
=
PINDIR_OUTPUT
;
lstrcpyW
(
pin
->
pin
.
name
,
name
);
...
...
@@ -843,17 +836,16 @@ static HRESULT deliver_newsegment(IPin *pin, LPVOID data)
return
IPin_NewSegment
(
pin
,
args
->
tStart
,
args
->
tStop
,
args
->
rate
);
}
HRESULT
WINAPI
BaseInputPinImpl_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
double
dR
ate
)
HRESULT
WINAPI
BaseInputPinImpl_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
start
,
REFERENCE_TIME
stop
,
double
r
ate
)
{
BaseInputPin
*
This
=
impl_BaseInputPin_from_IPin
(
iface
);
newsegmentargs
args
;
TRACE
(
"iface %p, start %s, stop %s, rate %.16e.
\n
"
,
iface
,
debugstr_time
(
tStart
),
debugstr_time
(
tStop
),
dR
ate
);
iface
,
debugstr_time
(
start
),
debugstr_time
(
stop
),
r
ate
);
args
.
tStart
=
This
->
pin
.
tStart
=
tS
tart
;
args
.
tStop
=
This
->
pin
.
tStop
=
tS
top
;
args
.
rate
=
This
->
pin
.
dRate
=
dR
ate
;
args
.
tStart
=
s
tart
;
args
.
tStop
=
s
top
;
args
.
rate
=
r
ate
;
return
SendFurther
(
iface
,
deliver_newsegment
,
&
args
,
NULL
);
}
...
...
@@ -994,7 +986,6 @@ void strmbase_sink_init(BaseInputPin *pin, const IPinVtbl *vtbl, struct strmbase
{
memset
(
pin
,
0
,
sizeof
(
*
pin
));
pin
->
pin
.
IPin_iface
.
lpVtbl
=
vtbl
;
pin
->
pin
.
dRate
=
1
.
0
;
pin
->
pin
.
filter
=
filter
;
pin
->
pin
.
dir
=
PINDIR_INPUT
;
lstrcpyW
(
pin
->
pin
.
name
,
name
);
...
...
include/wine/strmbase.h
View file @
21ac8397
...
...
@@ -38,8 +38,6 @@ struct strmbase_pin
WCHAR
name
[
128
];
IPin
*
peer
;
AM_MEDIA_TYPE
mtCurrent
;
REFERENCE_TIME
tStart
,
tStop
;
double
dRate
;
const
struct
BasePinFuncTable
*
pFuncsTable
;
};
...
...
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