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
33136293
Commit
33136293
authored
Jan 21, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove some unused assignments (PVS-Studio).
parent
552037c9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
avisplit.c
dlls/quartz/avisplit.c
+2
-3
mpegsplit.c
dlls/quartz/mpegsplit.c
+1
-2
pin.c
dlls/quartz/pin.c
+0
-1
waveparser.c
dlls/quartz/waveparser.c
+3
-3
No files found.
dlls/quartz/avisplit.c
View file @
33136293
...
...
@@ -260,8 +260,7 @@ static HRESULT AVISplitter_next_request(AVISplitterImpl *This, DWORD streamnumbe
if
(
rtSampleStart
!=
rtSampleStop
)
{
hr
=
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
hr
=
IAsyncReader_Request
(
pin
->
pReader
,
sample
,
streamnumber
);
if
(
FAILED
(
hr
))
...
...
@@ -338,7 +337,7 @@ static HRESULT AVISplitter_Receive(AVISplitterImpl *This, IMediaSample *sample,
}
rtstart
=
(
double
)(
start
-
pin
->
pin
.
pin
.
tStart
)
/
pin
->
pin
.
pin
.
dRate
;
rtstop
=
(
double
)(
stop
-
pin
->
pin
.
pin
.
tStart
)
/
pin
->
pin
.
pin
.
dRate
;
hr
=
IMediaSample_SetMediaTime
(
sample
,
&
start
,
&
stop
);
IMediaSample_SetMediaTime
(
sample
,
&
start
,
&
stop
);
IMediaSample_SetTime
(
sample
,
&
rtstart
,
&
rtstop
);
IMediaSample_SetMediaTime
(
sample
,
&
start
,
&
stop
);
...
...
dlls/quartz/mpegsplit.c
View file @
33136293
...
...
@@ -708,8 +708,7 @@ static HRESULT MPEGSplitter_first_request(LPVOID iface)
if
(
rtSampleStop
>
pin
->
rtStop
)
rtSampleStop
=
MEDIATIME_FROM_BYTES
(
ALIGNUP
(
BYTES_FROM_MEDIATIME
(
pin
->
rtStop
),
pin
->
cbAlign
));
hr
=
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetPreroll
(
sample
,
FALSE
);
IMediaSample_SetDiscontinuity
(
sample
,
TRUE
);
IMediaSample_SetSyncPoint
(
sample
,
1
);
...
...
dlls/quartz/pin.c
View file @
33136293
...
...
@@ -75,7 +75,6 @@ static HRESULT SendFurther( IPin *from, SendPinFunc fnMiddle, LPVOID arg, SendPi
hr
=
IPin_QueryInternalConnections
(
from
,
NULL
,
&
amount
);
if
(
hr
!=
E_NOTIMPL
&&
amount
)
FIXME
(
"Use QueryInternalConnections!
\n
"
);
hr
=
S_OK
;
pin_info
.
pFilter
=
NULL
;
hr
=
IPin_QueryPinInfo
(
from
,
&
pin_info
);
...
...
dlls/quartz/waveparser.c
View file @
33136293
...
...
@@ -117,7 +117,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
if
(
rtSampleStop
>
pin
->
rtStop
)
rtSampleStop
=
MEDIATIME_FROM_BYTES
(
ALIGNUP
(
BYTES_FROM_MEDIATIME
(
pin
->
rtStop
),
pin
->
cbAlign
));
hr
=
IMediaSample_SetTime
(
newsample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetTime
(
newsample
,
&
rtSampleStart
,
&
rtSampleStop
);
pin
->
rtCurrent
=
pin
->
rtNext
;
pin
->
rtNext
=
rtSampleStop
;
...
...
@@ -290,7 +290,7 @@ static HRESULT WAVEParser_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
amt
.
cbFormat
=
chunk
.
cb
;
amt
.
pbFormat
=
CoTaskMemAlloc
(
amt
.
cbFormat
);
amt
.
pUnk
=
NULL
;
hr
=
IAsyncReader_SyncRead
(
This
->
pReader
,
pos
,
amt
.
cbFormat
,
amt
.
pbFormat
);
IAsyncReader_SyncRead
(
This
->
pReader
,
pos
,
amt
.
cbFormat
,
amt
.
pbFormat
);
amt
.
subtype
=
MEDIATYPE_Audio
;
amt
.
subtype
.
Data1
=
((
WAVEFORMATEX
*
)
amt
.
pbFormat
)
->
wFormatTag
;
...
...
@@ -376,7 +376,7 @@ static HRESULT WAVEParser_first_request(LPVOID iface)
if
(
rtSampleStop
>
pin
->
rtStop
)
rtSampleStop
=
MEDIATIME_FROM_BYTES
(
ALIGNUP
(
BYTES_FROM_MEDIATIME
(
pin
->
rtStop
),
pin
->
cbAlign
));
hr
=
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
pin
->
rtCurrent
=
pin
->
rtNext
;
pin
->
rtNext
=
rtSampleStop
;
...
...
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