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
a19ff5f0
Commit
a19ff5f0
authored
Nov 04, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Sign-compare warnings fix.
parent
df17fcda
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
13 deletions
+14
-13
enummedia.c
dlls/quartz/enummedia.c
+1
-1
filtergraph.c
dlls/quartz/filtergraph.c
+2
-2
main.c
dlls/quartz/main.c
+5
-4
mpegsplit.c
dlls/quartz/mpegsplit.c
+2
-2
parser.c
dlls/quartz/parser.c
+2
-2
waveparser.c
dlls/quartz/waveparser.c
+2
-2
No files found.
dlls/quartz/enummedia.c
View file @
a19ff5f0
...
...
@@ -168,7 +168,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_Release(IEnumMediaTypes * iface)
if
(
!
refCount
)
{
int
i
;
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
enumMediaDetails
.
cMediaTypes
;
i
++
)
if
(
This
->
enumMediaDetails
.
pMediaTypes
[
i
].
pbFormat
)
CoTaskMemFree
(
This
->
enumMediaDetails
.
pMediaTypes
[
i
].
pbFormat
);
...
...
dlls/quartz/filtergraph.c
View file @
a19ff5f0
...
...
@@ -1025,7 +1025,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
hr
=
GetInternalConnections
(
pfilter
,
ppinfilter
,
&
ppins
,
&
nb
);
if
(
SUCCEEDED
(
hr
))
{
int
i
;
unsigned
int
i
;
if
(
nb
==
0
)
{
IPin_Disconnect
(
ppinfilter
);
IPin_Disconnect
(
ppinOut
);
...
...
@@ -1036,7 +1036,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
{
LPWSTR
pinname
=
NULL
;
TRACE
(
"Processing pin %
d
\n
"
,
i
);
TRACE
(
"Processing pin %
u
\n
"
,
i
);
hr
=
IPin_QueryId
(
ppins
[
i
],
&
pinname
);
if
(
SUCCEEDED
(
hr
))
...
...
dlls/quartz/main.c
View file @
a19ff5f0
...
...
@@ -24,6 +24,7 @@
#include "wine/debug.h"
#include "quartz_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
...
...
@@ -280,7 +281,7 @@ LONG WINAPI DBToAmpFactor(LONG db)
*/
DWORD
WINAPI
AMGetErrorTextA
(
HRESULT
hr
,
LPSTR
buffer
,
DWORD
maxlen
)
{
int
len
;
unsigned
int
len
;
static
const
char
format
[]
=
"Error: 0x%x"
;
char
error
[
MAX_ERROR_TEXT_LEN
];
...
...
@@ -288,7 +289,7 @@ DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
if
(
!
buffer
)
return
0
;
wsprintfA
(
error
,
format
,
hr
);
if
((
len
=
lstrlenA
(
error
))
>=
maxlen
)
return
0
;
if
((
len
=
strlen
(
error
))
>=
maxlen
)
return
0
;
lstrcpyA
(
buffer
,
error
);
return
len
;
}
...
...
@@ -298,7 +299,7 @@ DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
*/
DWORD
WINAPI
AMGetErrorTextW
(
HRESULT
hr
,
LPWSTR
buffer
,
DWORD
maxlen
)
{
int
len
;
unsigned
int
len
;
static
const
WCHAR
format
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
':'
,
' '
,
'0'
,
'x'
,
'%'
,
'l'
,
'x'
,
0
};
WCHAR
error
[
MAX_ERROR_TEXT_LEN
];
...
...
@@ -306,7 +307,7 @@ DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR buffer, DWORD maxlen)
if
(
!
buffer
)
return
0
;
wsprintfW
(
error
,
format
,
hr
);
if
((
len
=
lstrlenW
(
error
))
>=
maxlen
)
return
0
;
if
((
len
=
strlenW
(
error
))
>=
maxlen
)
return
0
;
lstrcpyW
(
buffer
,
error
);
return
len
;
}
dlls/quartz/mpegsplit.c
View file @
a19ff5f0
...
...
@@ -286,7 +286,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
if
(
BYTES_FROM_MEDIATIME
(
tStop
)
>=
This
->
EndOfFile
||
This
->
position
>=
This
->
Parser
.
mediaSeeking
.
llStop
)
{
int
i
;
unsigned
int
i
;
TRACE
(
"End of file reached
\n
"
);
...
...
@@ -301,7 +301,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
IPin_Release
(
ppin
);
}
if
(
FAILED
(
hr
))
WARN
(
"Error sending EndOfStream to pin %
d
(%x)
\n
"
,
i
,
hr
);
WARN
(
"Error sending EndOfStream to pin %
u
(%x)
\n
"
,
i
,
hr
);
}
/* Force the pullpin thread to stop */
...
...
dlls/quartz/parser.c
View file @
a19ff5f0
...
...
@@ -219,7 +219,7 @@ HRESULT WINAPI Parser_Stop(IBaseFilter * iface)
{
ParserImpl
*
This
=
(
ParserImpl
*
)
iface
;
PullPin
*
pin
=
(
PullPin
*
)
This
->
ppPins
[
0
];
int
i
;
ULONG
i
;
TRACE
(
"()
\n
"
);
...
...
@@ -293,7 +293,7 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
ParserImpl
*
This
=
(
ParserImpl
*
)
iface
;
PullPin
*
pin
=
(
PullPin
*
)
This
->
ppPins
[
0
];
int
i
;
ULONG
i
;
TRACE
(
"(%s)
\n
"
,
wine_dbgstr_longlong
(
tStart
));
...
...
dlls/quartz/waveparser.c
View file @
a19ff5f0
...
...
@@ -142,7 +142,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
if
(
tStop
>=
This
->
EndOfFile
||
(
bytepos_to_duration
(
This
,
tStop
)
>=
This
->
Parser
.
mediaSeeking
.
llStop
)
||
hr
==
VFW_E_NOT_CONNECTED
)
{
int
i
;
unsigned
int
i
;
TRACE
(
"End of file reached
\n
"
);
...
...
@@ -151,7 +151,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
IPin
*
ppin
;
HRESULT
hr
;
TRACE
(
"Send End Of Stream to output pin %
d
\n
"
,
i
);
TRACE
(
"Send End Of Stream to output pin %
u
\n
"
,
i
);
hr
=
IPin_ConnectedTo
(
This
->
Parser
.
ppPins
[
i
+
1
],
&
ppin
);
if
(
SUCCEEDED
(
hr
))
...
...
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