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
cfbb859f
Commit
cfbb859f
authored
Oct 12, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Win64 printf format warning fixes.
parent
9f06a5a6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
167 additions
and
168 deletions
+167
-168
Makefile.in
dlls/quartz/Makefile.in
+0
-1
acmwrapper.c
dlls/quartz/acmwrapper.c
+6
-6
avidec.c
dlls/quartz/avidec.c
+9
-9
avisplit.c
dlls/quartz/avisplit.c
+8
-8
control.c
dlls/quartz/control.c
+1
-1
dsoundrender.c
dlls/quartz/dsoundrender.c
+18
-18
enumfilters.c
dlls/quartz/enumfilters.c
+3
-3
enummedia.c
dlls/quartz/enummedia.c
+5
-5
enummoniker.c
dlls/quartz/enummoniker.c
+6
-6
enumpins.c
dlls/quartz/enumpins.c
+2
-2
enumregfilters.c
dlls/quartz/enumregfilters.c
+3
-3
filesource.c
dlls/quartz/filesource.c
+14
-14
filtergraph.c
dlls/quartz/filtergraph.c
+0
-0
filtermapper.c
dlls/quartz/filtermapper.c
+9
-9
main.c
dlls/quartz/main.c
+5
-5
memallocator.c
dlls/quartz/memallocator.c
+22
-22
parser.c
dlls/quartz/parser.c
+5
-5
pin.c
dlls/quartz/pin.c
+13
-13
regsvr.c
dlls/quartz/regsvr.c
+1
-1
systemclock.c
dlls/quartz/systemclock.c
+2
-2
transform.c
dlls/quartz/transform.c
+7
-7
videorenderer.c
dlls/quartz/videorenderer.c
+25
-25
waveparser.c
dlls/quartz/waveparser.c
+3
-3
No files found.
dlls/quartz/Makefile.in
View file @
cfbb859f
...
...
@@ -6,7 +6,6 @@ MODULE = quartz.dll
IMPORTLIB
=
libquartz.
$(IMPLIBEXT)
IMPORTS
=
dsound msacm32 msvfw32 ole32 oleaut32 user32 gdi32 advapi32 kernel32
EXTRALIBS
=
-lstrmiids
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
acmwrapper.c
\
...
...
dlls/quartz/acmwrapper.c
View file @
cfbb859f
...
...
@@ -73,7 +73,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
BOOL
unprepare_header
=
FALSE
;
MMRESULT
res
;
TRACE
(
"(%p)->(%p,%
l
d)
\n
"
,
This
,
data
,
size
);
TRACE
(
"(%p)->(%p,%d)
\n
"
,
This
,
data
,
size
);
hr
=
IPin_ConnectionMediaType
(
This
->
tf
.
ppPins
[
0
],
&
amt
);
if
(
FAILED
(
hr
))
{
...
...
@@ -98,7 +98,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
hr
=
OutputPin_GetDeliveryBuffer
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
&
pSample
,
NULL
,
NULL
,
0
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get delivery buffer (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
goto
error
;
}
...
...
@@ -107,7 +107,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbDstStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get pointer to buffer (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to get pointer to buffer (%x)
\n
"
,
hr
);
goto
error
;
}
cbDstStream
=
IMediaSample_GetSize
(
pSample
);
...
...
@@ -133,7 +133,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
}
This
->
reinit_codec
=
FALSE
;
TRACE
(
"used in %
lu, used out %l
u
\n
"
,
ash
.
cbSrcLengthUsed
,
ash
.
cbDstLengthUsed
);
TRACE
(
"used in %
u, used out %
u
\n
"
,
ash
.
cbSrcLengthUsed
,
ash
.
cbDstLengthUsed
);
hr
=
IMediaSample_SetActualDataLength
(
pSample
,
ash
.
cbDstLengthUsed
);
assert
(
hr
==
S_OK
);
...
...
@@ -147,7 +147,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
hr
=
OutputPin_SendSample
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
pSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
{
ERR
(
"Error sending sample (%
l
x)
\n
"
,
hr
);
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
goto
error
;
}
...
...
@@ -202,7 +202,7 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co
This
->
max_size
=
INPUT_BUFFER_SIZE
;
}
TRACE
(
"input buffer size %
l
d
\n
"
,
This
->
max_size
);
TRACE
(
"input buffer size %d
\n
"
,
This
->
max_size
);
/* Update buffer size of media samples in output */
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
])
->
allocProps
.
cbBuffer
=
OUTPUT_BUFFER_SIZE
;
...
...
dlls/quartz/avidec.c
View file @
cfbb859f
...
...
@@ -66,7 +66,7 @@ static HRESULT AVIDec_ProcessBegin(TransformFilterImpl* pTransformFilter)
result
=
ICDecompressBegin
(
This
->
hvid
,
This
->
pBihIn
,
This
->
pBihOut
);
if
(
result
!=
ICERR_OK
)
{
ERR
(
"Cannot start processing (%
l
d)
\n
"
,
result
);
ERR
(
"Cannot start processing (%d)
\n
"
,
result
);
return
E_FAIL
;
}
return
S_OK
;
...
...
@@ -83,7 +83,7 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, L
DWORD
cbDstStream
;
LPBYTE
pbDstStream
;
TRACE
(
"(%p)->(%p,%
l
d)
\n
"
,
This
,
data
,
size
);
TRACE
(
"(%p)->(%p,%d)
\n
"
,
This
,
data
,
size
);
hr
=
IPin_ConnectionMediaType
(
This
->
tf
.
ppPins
[
0
],
&
amt
);
if
(
FAILED
(
hr
))
{
...
...
@@ -97,7 +97,7 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, L
hr
=
OutputPin_GetDeliveryBuffer
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
&
pSample
,
NULL
,
NULL
,
0
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get delivery buffer (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
goto
error
;
}
...
...
@@ -106,23 +106,23 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, L
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbDstStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get pointer to buffer (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to get pointer to buffer (%x)
\n
"
,
hr
);
goto
error
;
}
cbDstStream
=
IMediaSample_GetSize
(
pSample
);
if
(
cbDstStream
<
This
->
pBihOut
->
biSizeImage
)
{
ERR
(
"Sample size is too small %
ld < %l
d
\n
"
,
cbDstStream
,
This
->
pBihOut
->
biSizeImage
);
ERR
(
"Sample size is too small %
d < %
d
\n
"
,
cbDstStream
,
This
->
pBihOut
->
biSizeImage
);
hr
=
E_FAIL
;
goto
error
;
}
res
=
ICDecompress
(
This
->
hvid
,
0
,
This
->
pBihIn
,
data
,
This
->
pBihOut
,
pbDstStream
);
if
(
res
!=
ICERR_OK
)
ERR
(
"Error occurred during the decompression (%
l
x)
\n
"
,
res
);
ERR
(
"Error occurred during the decompression (%x)
\n
"
,
res
);
hr
=
OutputPin_SendSample
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
pSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
{
ERR
(
"Error sending sample (%
l
x)
\n
"
,
hr
);
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
goto
error
;
}
...
...
@@ -143,7 +143,7 @@ static HRESULT AVIDec_ProcessEnd(TransformFilterImpl* pTransformFilter)
result
=
ICDecompressEnd
(
This
->
hvid
);
if
(
result
!=
ICERR_OK
)
{
ERR
(
"Cannot stop processing (%
l
d)
\n
"
,
result
);
ERR
(
"Cannot stop processing (%d)
\n
"
,
result
);
return
E_FAIL
;
}
return
S_OK
;
...
...
@@ -212,7 +212,7 @@ static HRESULT AVIDec_ConnectInput(TransformFilterImpl* pTransformFilter, const
result
=
ICDecompressQuery
(
This
->
hvid
,
This
->
pBihIn
,
This
->
pBihOut
);
if
(
result
!=
ICERR_OK
)
{
TRACE
(
"Unable to found a suitable output format (%
l
d)
\n
"
,
result
);
TRACE
(
"Unable to found a suitable output format (%d)
\n
"
,
result
);
goto
failed
;
}
...
...
dlls/quartz/avisplit.c
View file @
cfbb859f
...
...
@@ -175,7 +175,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
FIXME("handle palette change\n");
break;
default:
FIXME("Skipping unknown chunk type: %s at file offset 0x%
l
x\n", debugstr_an((LPSTR)&This->CurrentChunk.fcc, 4), (DWORD)BYTES_FROM_MEDIATIME(This->CurrentChunkOffset));
FIXME("Skipping unknown chunk type: %s at file offset 0x%x\n", debugstr_an((LPSTR)&This->CurrentChunk.fcc, 4), (DWORD)BYTES_FROM_MEDIATIME(This->CurrentChunkOffset));
if (S_FALSE == AVISplitter_NextChunk(&This->CurrentChunkOffset, &This->CurrentChunk, &tStart, &tStop, pbSrcStream, FALSE))
bMoreData = FALSE;
continue;
...
...
@@ -187,7 +187,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
if
(
streamId
>
This
->
Parser
.
cStreams
)
{
ERR
(
"Corrupted AVI file (contains stream id %d, but supposed to only have %
l
d streams)
\n
"
,
streamId
,
This
->
Parser
.
cStreams
);
ERR
(
"Corrupted AVI file (contains stream id %d, but supposed to only have %d streams)
\n
"
,
streamId
,
This
->
Parser
.
cStreams
);
hr
=
E_FAIL
;
break
;
}
...
...
@@ -207,7 +207,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
}
else
{
TRACE
(
"Skipping sending sample for stream %02d due to error (%
l
x)
\n
"
,
streamId
,
hr
);
TRACE
(
"Skipping sending sample for stream %02d due to error (%x)
\n
"
,
streamId
,
hr
);
This
->
pCurrentSample
=
NULL
;
if
(
S_FALSE
==
AVISplitter_NextChunk
(
&
This
->
CurrentChunkOffset
,
&
This
->
CurrentChunk
,
&
tStart
,
&
tStop
,
pbSrcStream
,
FALSE
))
bMoreData
=
FALSE
;
...
...
@@ -227,7 +227,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
assert
(
chunk_remaining_bytes
<=
cbDstStream
-
IMediaSample_GetActualDataLength
(
This
->
pCurrentSample
));
/* trace removed for performance reasons */
/* TRACE("chunk_remaining_bytes: 0x%
lx, cbSrcStream: 0x%lx, offset_src: 0x%l
x\n", chunk_remaining_bytes, cbSrcStream, offset_src); */
/* TRACE("chunk_remaining_bytes: 0x%
x, cbSrcStream: 0x%x, offset_src: 0x%
x\n", chunk_remaining_bytes, cbSrcStream, offset_src); */
}
if
(
chunk_remaining_bytes
<=
cbSrcStream
-
offset_src
)
...
...
@@ -264,7 +264,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
hr
=
OutputPin_SendSample
(
&
pOutputPin
->
pin
,
This
->
pCurrentSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
ERR
(
"Error sending sample (%
l
x)
\n
"
,
hr
);
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
}
if
(
This
->
pCurrentSample
)
...
...
@@ -308,7 +308,7 @@ skip:
}
if
(
FAILED
(
hr
))
{
ERR
(
"%
l
x
\n
"
,
hr
);
ERR
(
"%x
\n
"
,
hr
);
break
;
}
}
...
...
@@ -455,8 +455,8 @@ static HRESULT AVISplitter_ProcessStreamList(AVISplitterImpl * This, const BYTE
dump_AM_MEDIA_TYPE
(
&
amt
);
TRACE
(
"fSamplesPerSec = %f
\n
"
,
(
double
)
fSamplesPerSec
);
TRACE
(
"dwSampleSize = %
l
x
\n
"
,
dwSampleSize
);
TRACE
(
"dwLength = %
l
x
\n
"
,
dwLength
);
TRACE
(
"dwSampleSize = %x
\n
"
,
dwSampleSize
);
TRACE
(
"dwLength = %x
\n
"
,
dwLength
);
hr
=
Parser_AddPin
(
&
(
This
->
Parser
),
&
piOutput
,
&
props
,
&
amt
,
fSamplesPerSec
,
dwSampleSize
,
dwLength
);
...
...
dlls/quartz/control.c
View file @
cfbb859f
...
...
@@ -186,7 +186,7 @@ HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * p
BOOL
bChangeStart
=
FALSE
,
bChangeStop
=
FALSE
;
LONGLONG
llNewStart
,
llNewStop
;
TRACE
(
"(%p, %
lx, %p, %l
x)
\n
"
,
pCurrent
,
dwCurrentFlags
,
pStop
,
dwStopFlags
);
TRACE
(
"(%p, %
x, %p, %
x)
\n
"
,
pCurrent
,
dwCurrentFlags
,
pStop
,
dwStopFlags
);
llNewStart
=
Adjust
(
This
->
llStart
,
pCurrent
,
dwCurrentFlags
);
llNewStop
=
Adjust
(
This
->
llStop
,
pStop
,
dwStopFlags
);
...
...
dlls/quartz/dsoundrender.c
View file @
cfbb859f
...
...
@@ -118,15 +118,15 @@ static HRESULT DSoundRender_CreateSoundBuffer(IBaseFilter * iface)
TRACE
(
"MajorType %s
\n
"
,
debugstr_guid
(
&
amt
.
majortype
));
TRACE
(
"SubType %s
\n
"
,
debugstr_guid
(
&
amt
.
subtype
));
TRACE
(
"Format %s
\n
"
,
debugstr_guid
(
&
amt
.
formattype
));
TRACE
(
"Size %
l
d
\n
"
,
amt
.
cbFormat
);
TRACE
(
"Size %d
\n
"
,
amt
.
cbFormat
);
dump_AM_MEDIA_TYPE
(
&
amt
);
format
=
(
WAVEFORMATEX
*
)
amt
.
pbFormat
;
TRACE
(
"wFormatTag = %x %x
\n
"
,
format
->
wFormatTag
,
WAVE_FORMAT_PCM
);
TRACE
(
"nChannels = %d
\n
"
,
format
->
nChannels
);
TRACE
(
"nSamplesPerSec = %
l
u
\n
"
,
format
->
nSamplesPerSec
);
TRACE
(
"nAvgBytesPerSec = %
l
u
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nSamplesPerSec = %u
\n
"
,
format
->
nSamplesPerSec
);
TRACE
(
"nAvgBytesPerSec = %u
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nBlockAlign = %d
\n
"
,
format
->
nBlockAlign
);
TRACE
(
"wBitsPerSample = %d
\n
"
,
format
->
wBitsPerSample
);
TRACE
(
"cbSize = %d
\n
"
,
format
->
cbSize
);
...
...
@@ -171,7 +171,7 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
hr
=
IDirectSoundBuffer_GetCurrentPosition
(
This
->
dsbuffer
,
&
play_pos
,
NULL
);
if
(
hr
!=
DS_OK
)
{
ERR
(
"Error GetCurrentPosition: %
l
x
\n
"
,
hr
);
ERR
(
"Error GetCurrentPosition: %x
\n
"
,
hr
);
break
;
}
if
(
This
->
write_pos
<
play_pos
)
...
...
@@ -189,10 +189,10 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
size2
=
min
(
buf_free
,
size
);
hr
=
IDirectSoundBuffer_Lock
(
This
->
dsbuffer
,
This
->
write_pos
,
size2
,
&
lpbuf1
,
&
dwsize1
,
&
lpbuf2
,
&
dwsize2
,
0
);
if
(
hr
!=
DS_OK
)
{
ERR
(
"Unable to lock sound buffer! (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to lock sound buffer! (%x)
\n
"
,
hr
);
break
;
}
/* TRACE("write_pos=%
ld, size=%ld, sz1=%ld, sz2=%l
d\n", This->write_pos, size2, dwsize1, dwsize2); */
/* TRACE("write_pos=%
d, size=%d, sz1=%d, sz2=%
d\n", This->write_pos, size2, dwsize1, dwsize2); */
memcpy
(
lpbuf1
,
data
,
dwsize1
);
if
(
dwsize2
)
...
...
@@ -200,14 +200,14 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
hr
=
IDirectSoundBuffer_Unlock
(
This
->
dsbuffer
,
lpbuf1
,
dwsize1
,
lpbuf2
,
dwsize2
);
if
(
hr
!=
DS_OK
)
ERR
(
"Unable to unlock sound buffer! (%
l
x)
\n
"
,
hr
);
ERR
(
"Unable to unlock sound buffer! (%x)
\n
"
,
hr
);
if
(
!
This
->
started
)
{
hr
=
IDirectSoundBuffer_Play
(
This
->
dsbuffer
,
0
,
0
,
DSBPLAY_LOOPING
);
if
(
hr
==
DS_OK
)
This
->
started
=
TRUE
;
else
ERR
(
"Can't start playing! (%
l
x)
\n
"
,
hr
);
ERR
(
"Can't start playing! (%x)
\n
"
,
hr
);
}
size
-=
dwsize1
+
dwsize2
;
data
+=
dwsize1
+
dwsize2
;
...
...
@@ -234,13 +234,13 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Cannot get pointer to sample data (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get pointer to sample data (%x)
\n
"
,
hr
);
return
hr
;
}
hr
=
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
);
if
(
FAILED
(
hr
))
ERR
(
"Cannot get sample time (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get sample time (%x)
\n
"
,
hr
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
...
...
@@ -281,8 +281,8 @@ static HRESULT DSoundRender_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
WAVEFORMATEX
*
format
=
(
WAVEFORMATEX
*
)
pmt
->
pbFormat
;
TRACE
(
"wFormatTag = %x %x
\n
"
,
format
->
wFormatTag
,
WAVE_FORMAT_PCM
);
TRACE
(
"nChannels = %d
\n
"
,
format
->
nChannels
);
TRACE
(
"nSamplesPerSec = %
l
d
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nAvgBytesPerSec = %
l
d
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nSamplesPerSec = %d
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nAvgBytesPerSec = %d
\n
"
,
format
->
nAvgBytesPerSec
);
TRACE
(
"nBlockAlign = %d
\n
"
,
format
->
nBlockAlign
);
TRACE
(
"wBitsPerSample = %d
\n
"
,
format
->
wBitsPerSample
);
...
...
@@ -373,7 +373,7 @@ static ULONG WINAPI DSoundRender_AddRef(IBaseFilter * iface)
DSoundRenderImpl
*
This
=
(
DSoundRenderImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
refCount
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -383,7 +383,7 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface)
DSoundRenderImpl
*
This
=
(
DSoundRenderImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -473,7 +473,7 @@ static HRESULT WINAPI DSoundRender_GetState(IBaseFilter * iface, DWORD dwMilliSe
{
DSoundRenderImpl
*
This
=
(
DSoundRenderImpl
*
)
iface
;
TRACE
(
"(%p/%p)->(%
l
d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%p/%p)->(%d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
EnterCriticalSection
(
&
This
->
csFilter
);
{
...
...
@@ -703,7 +703,7 @@ static HRESULT WINAPI Basicaudio_GetTypeInfo(IBasicAudio *iface,
ITypeInfo
**
ppTInfo
)
{
ICOM_THIS_MULTI
(
DSoundRenderImpl
,
IBasicAudio_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
TRACE
(
"(%p/%p)->(%d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
return
S_OK
;
}
...
...
@@ -716,7 +716,7 @@ static HRESULT WINAPI Basicaudio_GetIDsOfNames(IBasicAudio *iface,
DISPID
*
rgDispId
)
{
ICOM_THIS_MULTI
(
DSoundRenderImpl
,
IBasicAudio_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%s (%p), %p, %d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
TRACE
(
"(%p/%p)->(%s (%p), %p, %d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
S_OK
;
}
...
...
@@ -732,7 +732,7 @@ static HRESULT WINAPI Basicaudio_Invoke(IBasicAudio *iface,
UINT
*
puArgErr
)
{
ICOM_THIS_MULTI
(
DSoundRenderImpl
,
IBasicAudio_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%
ld, %s (%p), %l
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
TRACE
(
"(%p/%p)->(%
d, %s (%p), %
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
return
S_OK
;
}
...
...
dlls/quartz/enumfilters.c
View file @
cfbb859f
...
...
@@ -41,7 +41,7 @@ HRESULT IEnumFiltersImpl_Construct(IBaseFilter ** ppFilters, ULONG nFilters, IEn
* they should have been previously AddRef'd. */
IEnumFiltersImpl
*
pEnumFilters
=
CoTaskMemAlloc
(
sizeof
(
IEnumFiltersImpl
));
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
ppFilters
,
nFilters
,
ppEnum
);
TRACE
(
"(%p, %d, %p)
\n
"
,
ppFilters
,
nFilters
,
ppEnum
);
*
ppEnum
=
NULL
;
...
...
@@ -124,7 +124,7 @@ static HRESULT WINAPI IEnumFiltersImpl_Next(IEnumFilters * iface, ULONG cFilters
cFetched
=
min
(
This
->
nFilters
,
This
->
uIndex
+
cFilters
)
-
This
->
uIndex
;
TRACE
(
"(%p)->(%
l
u, %p, %p)
\n
"
,
iface
,
cFilters
,
ppFilters
,
pcFetched
);
TRACE
(
"(%p)->(%u, %p, %p)
\n
"
,
iface
,
cFilters
,
ppFilters
,
pcFetched
);
for
(
i
=
0
;
i
<
cFetched
;
i
++
)
{
...
...
@@ -146,7 +146,7 @@ static HRESULT WINAPI IEnumFiltersImpl_Skip(IEnumFilters * iface, ULONG cFilters
{
IEnumFiltersImpl
*
This
=
(
IEnumFiltersImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
u)
\n
"
,
iface
,
cFilters
);
TRACE
(
"(%p)->(%u)
\n
"
,
iface
,
cFilters
);
if
(
This
->
uIndex
+
cFilters
<
This
->
nFilters
)
{
...
...
dlls/quartz/enummedia.c
View file @
cfbb859f
...
...
@@ -154,7 +154,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_AddRef(IEnumMediaTypes * iface)
IEnumMediaTypesImpl
*
This
=
(
IEnumMediaTypesImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
refCount
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -164,7 +164,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_Release(IEnumMediaTypes * iface)
IEnumMediaTypesImpl
*
This
=
(
IEnumMediaTypesImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -185,8 +185,8 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Next(IEnumMediaTypes * iface, ULONG cM
cFetched
=
min
(
This
->
enumMediaDetails
.
cMediaTypes
,
This
->
uIndex
+
cMediaTypes
)
-
This
->
uIndex
;
TRACE
(
"(%
l
u, %p, %p)
\n
"
,
cMediaTypes
,
ppMediaTypes
,
pcFetched
);
TRACE
(
"Next uIndex: %
lu, cFetched: %l
u
\n
"
,
This
->
uIndex
,
cFetched
);
TRACE
(
"(%u, %p, %p)
\n
"
,
cMediaTypes
,
ppMediaTypes
,
pcFetched
);
TRACE
(
"Next uIndex: %
u, cFetched: %
u
\n
"
,
This
->
uIndex
,
cFetched
);
if
(
cFetched
>
0
)
{
...
...
@@ -215,7 +215,7 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Skip(IEnumMediaTypes * iface, ULONG cM
{
IEnumMediaTypesImpl
*
This
=
(
IEnumMediaTypesImpl
*
)
iface
;
TRACE
(
"(%
l
u)
\n
"
,
cMediaTypes
);
TRACE
(
"(%u)
\n
"
,
cMediaTypes
);
if
(
This
->
uIndex
+
cMediaTypes
<
This
->
enumMediaDetails
.
cMediaTypes
)
{
...
...
dlls/quartz/enummoniker.c
View file @
cfbb859f
...
...
@@ -50,7 +50,7 @@ HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnum
* IMonikers */
EnumMonikerImpl
*
pemi
=
CoTaskMemAlloc
(
sizeof
(
EnumMonikerImpl
));
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
ppMoniker
,
nMonikerCount
,
ppEnum
);
TRACE
(
"(%p, %d, %p)
\n
"
,
ppMoniker
,
nMonikerCount
,
ppEnum
);
*
ppEnum
=
NULL
;
...
...
@@ -106,7 +106,7 @@ static ULONG WINAPI EnumMonikerImpl_AddRef(LPENUMMONIKER iface)
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
ref
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
ref
-
1
);
return
ref
;
}
...
...
@@ -119,7 +119,7 @@ static ULONG WINAPI EnumMonikerImpl_Release(LPENUMMONIKER iface)
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
ref
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
ref
+
1
);
if
(
!
ref
)
{
...
...
@@ -136,7 +136,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(LPENUMMONIKER iface, ULONG celt, IMon
ULONG
fetched
;
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
d, %p, %p)
\n
"
,
iface
,
celt
,
rgelt
,
pceltFetched
);
TRACE
(
"(%p)->(%d, %p, %p)
\n
"
,
iface
,
celt
,
rgelt
,
pceltFetched
);
for
(
fetched
=
0
;
(
This
->
index
+
fetched
<
This
->
nMonikerCount
)
&&
(
fetched
<
celt
);
fetched
++
)
{
...
...
@@ -146,7 +146,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(LPENUMMONIKER iface, ULONG celt, IMon
This
->
index
+=
fetched
;
TRACE
(
"-- fetched %
l
d
\n
"
,
fetched
);
TRACE
(
"-- fetched %d
\n
"
,
fetched
);
if
(
pceltFetched
)
*
pceltFetched
=
fetched
;
...
...
@@ -161,7 +161,7 @@ static HRESULT WINAPI EnumMonikerImpl_Skip(LPENUMMONIKER iface, ULONG celt)
{
EnumMonikerImpl
*
This
=
(
EnumMonikerImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
d)
\n
"
,
iface
,
celt
);
TRACE
(
"(%p)->(%d)
\n
"
,
iface
,
celt
);
This
->
index
+=
celt
;
...
...
dlls/quartz/enumpins.c
View file @
cfbb859f
...
...
@@ -105,7 +105,7 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
cFetched
=
min
(
This
->
enumPinDetails
.
cPins
,
This
->
uIndex
+
cPins
)
-
This
->
uIndex
;
TRACE
(
"(%
l
u, %p, %p)
\n
"
,
cPins
,
ppPins
,
pcFetched
);
TRACE
(
"(%u, %p, %p)
\n
"
,
cPins
,
ppPins
,
pcFetched
);
if
(
cFetched
>
0
)
{
...
...
@@ -130,7 +130,7 @@ static HRESULT WINAPI IEnumPinsImpl_Skip(IEnumPins * iface, ULONG cPins)
{
IEnumPinsImpl
*
This
=
(
IEnumPinsImpl
*
)
iface
;
TRACE
(
"(%
l
u)
\n
"
,
cPins
);
TRACE
(
"(%u)
\n
"
,
cPins
);
if
(
This
->
uIndex
+
cPins
<
This
->
enumPinDetails
.
cPins
)
{
...
...
dlls/quartz/enumregfilters.c
View file @
cfbb859f
...
...
@@ -43,7 +43,7 @@ HRESULT IEnumRegFiltersImpl_Construct(REGFILTER* pInRegFilters, const ULONG size
REGFILTER
*
pRegFilters
=
NULL
;
unsigned
int
i
;
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
pInRegFilters
,
size
,
ppEnum
);
TRACE
(
"(%p, %d, %p)
\n
"
,
pInRegFilters
,
size
,
ppEnum
);
pEnumRegFilters
=
CoTaskMemAlloc
(
sizeof
(
IEnumRegFiltersImpl
));
if
(
!
pEnumRegFilters
)
...
...
@@ -145,7 +145,7 @@ static HRESULT WINAPI IEnumRegFiltersImpl_Next(IEnumRegFilters * iface, ULONG cF
cFetched
=
min
(
This
->
size
,
This
->
uIndex
+
cFilters
)
-
This
->
uIndex
;
TRACE
(
"(%p)->(%
l
u, %p, %p)
\n
"
,
iface
,
cFilters
,
ppRegFilter
,
pcFetched
);
TRACE
(
"(%p)->(%u, %p, %p)
\n
"
,
iface
,
cFilters
,
ppRegFilter
,
pcFetched
);
if
(
cFetched
>
0
)
{
...
...
@@ -178,7 +178,7 @@ static HRESULT WINAPI IEnumRegFiltersImpl_Next(IEnumRegFilters * iface, ULONG cF
static
HRESULT
WINAPI
IEnumRegFiltersImpl_Skip
(
IEnumRegFilters
*
iface
,
ULONG
n
)
{
TRACE
(
"(%p)->(%
l
u)
\n
"
,
iface
,
n
);
TRACE
(
"(%p)->(%u)
\n
"
,
iface
,
n
);
return
E_NOTIMPL
;
}
...
...
dlls/quartz/filesource.c
View file @
cfbb859f
...
...
@@ -362,7 +362,7 @@ static ULONG WINAPI AsyncReader_AddRef(IBaseFilter * iface)
AsyncReader
*
This
=
(
AsyncReader
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
refCount
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -372,7 +372,7 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
AsyncReader
*
This
=
(
AsyncReader
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -426,7 +426,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart
{
AsyncReader
*
This
=
(
AsyncReader
*
)
iface
;
TRACE
(
"(%
lx%08l
x)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
);
TRACE
(
"(%
x%08
x)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
);
This
->
state
=
State_Running
;
...
...
@@ -437,7 +437,7 @@ static HRESULT WINAPI AsyncReader_GetState(IBaseFilter * iface, DWORD dwMilliSec
{
AsyncReader
*
This
=
(
AsyncReader
*
)
iface
;
TRACE
(
"(%
l
u, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%u, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
*
pState
=
This
->
state
;
...
...
@@ -828,7 +828,7 @@ static HRESULT FileAsyncReaderPin_ConnectSpecific(IPin * iface, IPin * pReceiveP
FreeMediaType
(
&
This
->
pin
.
mtCurrent
);
}
TRACE
(
" -- %
l
x
\n
"
,
hr
);
TRACE
(
" -- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -908,7 +908,7 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe
{
IMemAllocator_AddRef
(
pPreferred
);
*
ppActual
=
pPreferred
;
TRACE
(
"FileAsyncReader_RequestAllocator -- %
l
x
\n
"
,
hr
);
TRACE
(
"FileAsyncReader_RequestAllocator -- %x
\n
"
,
hr
);
return
S_OK
;
}
}
...
...
@@ -926,7 +926,7 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe
{
IMemAllocator_AddRef
(
pPreferred
);
*
ppActual
=
pPreferred
;
TRACE
(
"FileAsyncReader_RequestAllocator -- %
l
x
\n
"
,
hr
);
TRACE
(
"FileAsyncReader_RequestAllocator -- %x
\n
"
,
hr
);
return
S_OK
;
}
}
...
...
@@ -938,7 +938,7 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe
IMemAllocator_Release
(
pPreferred
);
}
TRACE
(
"-- %
l
x
\n
"
,
hr
);
TRACE
(
"-- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1021,7 +1021,7 @@ static HRESULT WINAPI FileAsyncReader_Request(IAsyncReader * iface, IMediaSample
CoTaskMemFree
(
pDataRq
);
}
TRACE
(
"-- %
l
x
\n
"
,
hr
);
TRACE
(
"-- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1031,7 +1031,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
DATAREQUEST
*
pDataRq
=
NULL
;
FileAsyncReader
*
This
=
impl_from_IAsyncReader
(
iface
);
TRACE
(
"(%
l
u, %p, %p)
\n
"
,
dwTimeout
,
ppSample
,
pdwUser
);
TRACE
(
"(%u, %p, %p)
\n
"
,
dwTimeout
,
ppSample
,
pdwUser
);
/* FIXME: we could do with improving this by waiting for an array of event handles
* and then determining which one finished and removing that from the list, otherwise
...
...
@@ -1081,7 +1081,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
/* no need to close event handle since we will close it when the pin is destroyed */
CoTaskMemFree
(
pDataRq
);
TRACE
(
"-- %
l
x
\n
"
,
hr
);
TRACE
(
"-- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1107,7 +1107,7 @@ static HRESULT WINAPI FileAsyncReader_SyncReadAligned(IAsyncReader * iface, IMed
(
LONG
)
BYTES_FROM_MEDIATIME
(
tStop
-
tStart
),
pBuffer
);
TRACE
(
"-- %
l
x
\n
"
,
hr
);
TRACE
(
"-- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1117,7 +1117,7 @@ static HRESULT WINAPI FileAsyncReader_SyncRead(IAsyncReader * iface, LONGLONG ll
HRESULT
hr
=
S_OK
;
FileAsyncReader
*
This
=
impl_from_IAsyncReader
(
iface
);
TRACE
(
"(%
lx%08lx, %l
d, %p)
\n
"
,
(
ULONG
)(
llPosition
>>
32
),
(
ULONG
)
llPosition
,
lLength
,
pBuffer
);
TRACE
(
"(%
x%08x, %
d, %p)
\n
"
,
(
ULONG
)(
llPosition
>>
32
),
(
ULONG
)
llPosition
,
lLength
,
pBuffer
);
ZeroMemory
(
&
ovl
,
sizeof
(
ovl
));
...
...
@@ -1142,7 +1142,7 @@ static HRESULT WINAPI FileAsyncReader_SyncRead(IAsyncReader * iface, LONGLONG ll
CloseHandle
(
ovl
.
hEvent
);
TRACE
(
"-- %
l
x
\n
"
,
hr
);
TRACE
(
"-- %x
\n
"
,
hr
);
return
hr
;
}
...
...
dlls/quartz/filtergraph.c
View file @
cfbb859f
This diff is collapsed.
Click to expand it.
dlls/quartz/filtermapper.c
View file @
cfbb859f
...
...
@@ -248,7 +248,7 @@ static HRESULT WINAPI FilterMapper2_CreateCategory(
LONG
lRet
;
HRESULT
hr
;
TRACE
(
"(%s, %
l
x, %s)
\n
"
,
debugstr_guid
(
clsidCategory
),
dwCategoryMerit
,
debugstr_w
(
szDescription
));
TRACE
(
"(%s, %x, %s)
\n
"
,
debugstr_guid
(
clsidCategory
),
dwCategoryMerit
,
debugstr_w
(
szDescription
));
hr
=
StringFromCLSID
(
&
CLSID_ActiveMovieCategories
,
&
wClsidAMCat
);
...
...
@@ -515,7 +515,7 @@ static HRESULT FM2_ReadFilterData(IPropertyBag * pPropBag, REGFILTER2 * prf2)
if
(
prrf
->
dwVersion
!=
2
)
{
FIXME
(
"Filter registry version %
l
d not supported
\n
"
,
prrf
->
dwVersion
);
FIXME
(
"Filter registry version %d not supported
\n
"
,
prrf
->
dwVersion
);
ZeroMemory
(
prf2
,
sizeof
(
*
prf2
));
hr
=
E_FAIL
;
}
...
...
@@ -523,7 +523,7 @@ static HRESULT FM2_ReadFilterData(IPropertyBag * pPropBag, REGFILTER2 * prf2)
if
(
SUCCEEDED
(
hr
))
{
TRACE
(
"version = %
ld, merit = %lx, #pins = %ld, unused = %l
x
\n
"
,
TRACE
(
"version = %
d, merit = %x, #pins = %d, unused = %
x
\n
"
,
prrf
->
dwVersion
,
prrf
->
dwMerit
,
prrf
->
dwPins
,
prrf
->
dwUnused
);
prf2
->
dwVersion
=
prrf
->
dwVersion
;
...
...
@@ -544,7 +544,7 @@ static HRESULT FM2_ReadFilterData(IPropertyBag * pPropBag, REGFILTER2 * prf2)
TRACE
(
"
\t
signature = %s
\n
"
,
debugstr_an
((
const
char
*
)
prrfp
->
signature
,
4
));
TRACE
(
"
\t
pin[%
ld]: flags = %lx, instances = %ld, media types = %ld, mediums = %l
d
\n
"
,
TRACE
(
"
\t
pin[%
d]: flags = %x, instances = %d, media types = %d, mediums = %
d
\n
"
,
i
,
prrfp
->
dwFlags
,
prrfp
->
dwInstances
,
prrfp
->
dwMediaTypes
,
prrfp
->
dwMediums
);
rgPins2
[
i
].
dwFlags
=
prrfp
->
dwFlags
;
...
...
@@ -787,7 +787,7 @@ static HRESULT WINAPI FilterMapper2_RegisterFilter(
CoTaskMemFree
(
pregfp2
);
TRACE
(
"-- returning %
l
x
\n
"
,
hr
);
TRACE
(
"-- returning %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -866,7 +866,7 @@ static HRESULT WINAPI FilterMapper2_EnumMatchingFilters(
HRESULT
hr
;
struct
Vector
monikers
=
{
NULL
,
0
,
0
};
TRACE
(
"(%p, %
lx, %s, %lx, %s, %l
d, %p, %p, %p, %s, %s, %p, %p, %p)
\n
"
,
TRACE
(
"(%p, %
x, %s, %x, %s, %
d, %p, %p, %p, %s, %s, %p, %p, %p)
\n
"
,
ppEnum
,
dwFlags
,
bExactMatch
?
"true"
:
"false"
,
...
...
@@ -884,7 +884,7 @@ static HRESULT WINAPI FilterMapper2_EnumMatchingFilters(
if
(
dwFlags
!=
0
)
{
FIXME
(
"dwFlags = %
l
x not implemented
\n
"
,
dwFlags
);
FIXME
(
"dwFlags = %x not implemented
\n
"
,
dwFlags
);
}
*
ppEnum
=
NULL
;
...
...
@@ -1095,7 +1095,7 @@ static HRESULT WINAPI FilterMapper_EnumMatchingFilters(
REGFILTER
*
regfilters
;
HRESULT
hr
;
TRACE
(
"(%p/%p)->(%p, %
l
x, %s, %s, %s, %s, %s, %s, %s) stub!
\n
"
,
TRACE
(
"(%p/%p)->(%p, %x, %s, %s, %s, %s, %s, %s, %s) stub!
\n
"
,
iface
,
This
,
ppEnum
,
dwMerit
,
...
...
@@ -1220,7 +1220,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c
LONG
lRet
;
WCHAR
wszKeyName
[
strlenW
(
wszFilterSlash
)
+
(
CHARS_IN_GUID
-
1
)
+
1
];
TRACE
(
"(%p)->(%s, %s, %
l
x)
\n
"
,
iface
,
debugstr_guid
(
&
clsid
),
debugstr_w
(
szName
),
dwMerit
);
TRACE
(
"(%p)->(%s, %s, %x)
\n
"
,
iface
,
debugstr_guid
(
&
clsid
),
debugstr_w
(
szName
),
dwMerit
);
hr
=
StringFromCLSID
(
&
clsid
,
&
wszClsid
);
...
...
dlls/quartz/main.c
View file @
cfbb859f
...
...
@@ -256,13 +256,13 @@ const char * qzdebugstr_State(FILTER_STATE state)
LONG
WINAPI
AmpFactorToDB
(
LONG
ampfactor
)
{
FIXME
(
"(%
l
d) Stub!
\n
"
,
ampfactor
);
FIXME
(
"(%d) Stub!
\n
"
,
ampfactor
);
return
0
;
}
LONG
WINAPI
DBToAmpFactor
(
LONG
db
)
{
FIXME
(
"(%
l
d) Stub!
\n
"
,
db
);
FIXME
(
"(%d) Stub!
\n
"
,
db
);
/* Avoid divide by zero (probably during range computation) in Windows Media Player 6.4 */
if
(
db
<
-
1000
)
return
0
;
...
...
@@ -272,10 +272,10 @@ LONG WINAPI DBToAmpFactor(LONG db)
DWORD
WINAPI
AMGetErrorTextA
(
HRESULT
hr
,
char
*
buffer
,
DWORD
maxlen
)
{
int
len
;
static
const
char
format
[]
=
"Error: 0x%
l
x"
;
static
const
char
format
[]
=
"Error: 0x%x"
;
char
error
[
MAX_ERROR_TEXT_LEN
];
FIXME
(
"(%
lx,%p,%l
d) stub
\n
"
,
hr
,
buffer
,
maxlen
);
FIXME
(
"(%
x,%p,%
d) stub
\n
"
,
hr
,
buffer
,
maxlen
);
if
(
!
buffer
)
return
0
;
wsprintfA
(
error
,
format
,
hr
);
...
...
@@ -290,7 +290,7 @@ DWORD WINAPI AMGetErrorTextW(HRESULT hr, WCHAR *buffer, DWORD maxlen)
static
const
WCHAR
format
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
':'
,
' '
,
'0'
,
'x'
,
'%'
,
'l'
,
'x'
,
0
};
WCHAR
error
[
MAX_ERROR_TEXT_LEN
];
FIXME
(
"(%
lx,%p,%l
d) stub
\n
"
,
hr
,
buffer
,
maxlen
);
FIXME
(
"(%
x,%p,%
d) stub
\n
"
,
hr
,
buffer
,
maxlen
);
if
(
!
buffer
)
return
0
;
wsprintfW
(
error
,
format
,
hr
);
...
...
dlls/quartz/memallocator.c
View file @
cfbb859f
...
...
@@ -39,16 +39,16 @@ void dump_AM_SAMPLE2_PROPERTIES(AM_SAMPLE2_PROPERTIES * pProps)
TRACE
(
"AM_SAMPLE2_PROPERTIES: (null)
\n
"
);
return
;
}
TRACE
(
"
\t
cbData: %
l
d
\n
"
,
pProps
->
cbData
);
TRACE
(
"
\t
dwTypeSpecificFlags: 0x%8
l
x
\n
"
,
pProps
->
dwTypeSpecificFlags
);
TRACE
(
"
\t
dwSampleFlags: 0x%8
l
x
\n
"
,
pProps
->
dwSampleFlags
);
TRACE
(
"
\t
lActual: %
l
d
\n
"
,
pProps
->
lActual
);
TRACE
(
"
\t
tStart: %
lx%08l
x%s
\n
"
,
(
LONG
)(
pProps
->
tStart
>>
32
),
(
LONG
)
pProps
->
tStart
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_TIMEVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
tStop: %
lx%08l
x%s
\n
"
,
(
LONG
)(
pProps
->
tStop
>>
32
),
(
LONG
)
pProps
->
tStop
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_STOPVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
dwStreamId: 0x%
l
x
\n
"
,
pProps
->
dwStreamId
);
TRACE
(
"
\t
cbData: %d
\n
"
,
pProps
->
cbData
);
TRACE
(
"
\t
dwTypeSpecificFlags: 0x%8x
\n
"
,
pProps
->
dwTypeSpecificFlags
);
TRACE
(
"
\t
dwSampleFlags: 0x%8x
\n
"
,
pProps
->
dwSampleFlags
);
TRACE
(
"
\t
lActual: %d
\n
"
,
pProps
->
lActual
);
TRACE
(
"
\t
tStart: %
x%08
x%s
\n
"
,
(
LONG
)(
pProps
->
tStart
>>
32
),
(
LONG
)
pProps
->
tStart
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_TIMEVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
tStop: %
x%08
x%s
\n
"
,
(
LONG
)(
pProps
->
tStop
>>
32
),
(
LONG
)
pProps
->
tStop
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_STOPVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
dwStreamId: 0x%x
\n
"
,
pProps
->
dwStreamId
);
TRACE
(
"
\t
pMediaType: %p
\n
"
,
pProps
->
pMediaType
);
TRACE
(
"
\t
pbBuffer: %p
\n
"
,
pProps
->
pbBuffer
);
TRACE
(
"
\t
cbBuffer: %
l
d
\n
"
,
pProps
->
cbBuffer
);
TRACE
(
"
\t
cbBuffer: %d
\n
"
,
pProps
->
cbBuffer
);
}
typedef
struct
BaseMemAllocator
...
...
@@ -137,7 +137,7 @@ static ULONG WINAPI BaseMemAllocator_AddRef(IMemAllocator * iface)
BaseMemAllocator
*
This
=
(
BaseMemAllocator
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
ref
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
ref
-
1
);
return
ref
;
}
...
...
@@ -147,7 +147,7 @@ static ULONG WINAPI BaseMemAllocator_Release(IMemAllocator * iface)
BaseMemAllocator
*
This
=
(
BaseMemAllocator
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
ref
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
ref
+
1
);
if
(
!
ref
)
{
...
...
@@ -245,7 +245,7 @@ static HRESULT WINAPI BaseMemAllocator_Commit(IMemAllocator * iface)
{
if
(
!
(
This
->
hSemWaiting
=
CreateSemaphoreW
(
NULL
,
This
->
pProps
->
cBuffers
,
This
->
pProps
->
cBuffers
,
NULL
)))
{
ERR
(
"Couldn't create semaphore (error was %
l
d)
\n
"
,
GetLastError
());
ERR
(
"Couldn't create semaphore (error was %d)
\n
"
,
GetLastError
());
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
else
...
...
@@ -254,7 +254,7 @@ static HRESULT WINAPI BaseMemAllocator_Commit(IMemAllocator * iface)
if
(
SUCCEEDED
(
hr
))
This
->
bCommitted
=
TRUE
;
else
ERR
(
"fnAlloc failed with error 0x%
l
x
\n
"
,
hr
);
ERR
(
"fnAlloc failed with error 0x%x
\n
"
,
hr
);
}
}
}
...
...
@@ -294,7 +294,7 @@ static HRESULT WINAPI BaseMemAllocator_Decommit(IMemAllocator * iface)
hr
=
This
->
fnFree
(
iface
);
if
(
FAILED
(
hr
))
ERR
(
"fnFree failed with error 0x%
l
x
\n
"
,
hr
);
ERR
(
"fnFree failed with error 0x%x
\n
"
,
hr
);
}
}
}
...
...
@@ -311,7 +311,7 @@ static HRESULT WINAPI BaseMemAllocator_GetBuffer(IMemAllocator * iface, IMediaSa
/* NOTE: The pStartTime and pEndTime parameters are not applied to the sample.
* The allocator might use these values to determine which buffer it retrieves */
TRACE
(
"(%p)->(%p, %p, %p, %
l
x)
\n
"
,
This
,
pSample
,
pStartTime
,
pEndTime
,
dwFlags
);
TRACE
(
"(%p)->(%p, %p, %p, %x)
\n
"
,
This
,
pSample
,
pStartTime
,
pEndTime
,
dwFlags
);
*
pSample
=
NULL
;
...
...
@@ -385,7 +385,7 @@ static HRESULT WINAPI BaseMemAllocator_ReleaseBuffer(IMemAllocator * iface, IMed
This
->
hSemWaiting
=
NULL
;
if
(
FAILED
(
hrfree
=
This
->
fnFree
(
iface
)))
ERR
(
"fnFree failed with error 0x%
l
x
\n
"
,
hrfree
);
ERR
(
"fnFree failed with error 0x%x
\n
"
,
hrfree
);
}
}
LeaveCriticalSection
(
&
This
->
csState
);
...
...
@@ -393,7 +393,7 @@ static HRESULT WINAPI BaseMemAllocator_ReleaseBuffer(IMemAllocator * iface, IMed
/* notify a waiting thread that there is now a free buffer */
if
(
!
ReleaseSemaphore
(
This
->
hSemWaiting
,
1
,
NULL
))
{
ERR
(
"ReleaseSemaphore failed with error %
l
d
\n
"
,
GetLastError
());
ERR
(
"ReleaseSemaphore failed with error %d
\n
"
,
GetLastError
());
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
...
...
@@ -473,7 +473,7 @@ static ULONG WINAPI StdMediaSample2_AddRef(IMediaSample2 * iface)
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
ref
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
ref
-
1
);
return
ref
;
}
...
...
@@ -483,7 +483,7 @@ static ULONG WINAPI StdMediaSample2_Release(IMediaSample2 * iface)
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
ref
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
ref
+
1
);
if
(
!
ref
)
{
...
...
@@ -618,7 +618,7 @@ static HRESULT WINAPI StdMediaSample2_SetActualDataLength(IMediaSample2 * iface,
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
l
d)
\n
"
,
len
);
TRACE
(
"(%d)
\n
"
,
len
);
if
((
len
>
This
->
props
.
cbBuffer
)
||
(
len
<
0
))
return
VFW_E_BUFFER_OVERFLOW
;
...
...
@@ -720,7 +720,7 @@ static HRESULT WINAPI StdMediaSample2_GetProperties(IMediaSample2 * iface, DWORD
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
l
d, %p)
\n
"
,
cbProperties
,
pbProperties
);
TRACE
(
"(%d, %p)
\n
"
,
cbProperties
,
pbProperties
);
memcpy
(
pbProperties
,
&
This
->
props
,
min
(
cbProperties
,
sizeof
(
This
->
props
)));
...
...
@@ -731,7 +731,7 @@ static HRESULT WINAPI StdMediaSample2_SetProperties(IMediaSample2 * iface, DWORD
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
l
d, %p)
\n
"
,
cbProperties
,
pbProperties
);
TRACE
(
"(%d, %p)
\n
"
,
cbProperties
,
pbProperties
);
/* NOTE: pbBuffer and cbBuffer are read-only */
memcpy
(
&
This
->
props
,
pbProperties
,
min
(
cbProperties
,
AM_SAMPLE2_PROP_SIZE_WRITABLE
));
...
...
@@ -821,7 +821,7 @@ static HRESULT StdMemAllocator_Free(IMemAllocator * iface)
/* free memory */
if
(
!
VirtualFree
(
This
->
pMemory
,
0
,
MEM_RELEASE
))
{
ERR
(
"Couldn't free memory. Error: %
l
d
\n
"
,
GetLastError
());
ERR
(
"Couldn't free memory. Error: %d
\n
"
,
GetLastError
());
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
...
...
dlls/quartz/parser.c
View file @
cfbb859f
...
...
@@ -169,7 +169,7 @@ static ULONG WINAPI Parser_AddRef(IBaseFilter * iface)
ParserImpl
*
This
=
(
ParserImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
refCount
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -179,7 +179,7 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface)
ParserImpl
*
This
=
(
ParserImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -342,7 +342,7 @@ static HRESULT WINAPI Parser_GetState(IBaseFilter * iface, DWORD dwMilliSecsTime
{
ParserImpl
*
This
=
(
ParserImpl
*
)
iface
;
TRACE
(
"(%
l
d, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%d, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
EnterCriticalSection
(
&
This
->
csFilter
);
{
...
...
@@ -503,7 +503,7 @@ HRESULT Parser_AddPin(ParserImpl * This, PIN_INFO * piOutput, ALLOCATOR_PROPERTI
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
ppPins
);
This
->
ppPins
=
ppOldPins
;
ERR
(
"Failed with error %
l
x
\n
"
,
hr
);
ERR
(
"Failed with error %x
\n
"
,
hr
);
}
return
hr
;
...
...
@@ -627,7 +627,7 @@ static ULONG WINAPI Parser_OutputPin_Release(IPin * iface)
Parser_OutputPin
*
This
=
(
Parser_OutputPin
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
pin
.
pin
.
refCount
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
dlls/quartz/pin.c
View file @
cfbb859f
...
...
@@ -113,7 +113,7 @@ static HRESULT OutputPin_ConnectSpecific(IPin * iface, IPin * pReceivePin, const
FreeMediaType
(
&
This
->
pin
.
mtCurrent
);
}
TRACE
(
" -- %
l
x
\n
"
,
hr
);
TRACE
(
" -- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -232,7 +232,7 @@ ULONG WINAPI IPinImpl_AddRef(IPin * iface)
IPinImpl
*
This
=
(
IPinImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->() AddRef from %
l
d
\n
"
,
iface
,
refCount
-
1
);
TRACE
(
"(%p)->() AddRef from %d
\n
"
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -411,7 +411,7 @@ ULONG WINAPI InputPin_Release(IPin * iface)
InputPin
*
This
=
(
InputPin
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
pin
.
refCount
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -497,7 +497,7 @@ HRESULT WINAPI InputPin_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENC
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TRACE
(
"(%
lx%08lx, %lx%08l
x, %e)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
,
(
ULONG
)(
tStop
>>
32
),
(
ULONG
)
tStop
,
dRate
);
TRACE
(
"(%
x%08x, %x%08
x, %e)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
,
(
ULONG
)(
tStop
>>
32
),
(
ULONG
)
tStop
,
dRate
);
This
->
tStart
=
tStart
;
This
->
tStop
=
tStop
;
...
...
@@ -670,7 +670,7 @@ ULONG WINAPI OutputPin_Release(IPin * iface)
OutputPin
*
This
=
(
OutputPin
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
pin
.
refCount
);
TRACE
(
"(%p)->() Release from %
l
d
\n
"
,
iface
,
refCount
+
1
);
TRACE
(
"(%p)->() Release from %d
\n
"
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -748,7 +748,7 @@ HRESULT WINAPI OutputPin_Connect(IPin * iface, IPin * pReceivePin, const AM_MEDI
}
/* if succeeded */
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
TRACE
(
" -- %
l
x
\n
"
,
hr
);
TRACE
(
" -- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -816,7 +816,7 @@ HRESULT WINAPI OutputPin_EndFlush(IPin * iface)
HRESULT
WINAPI
OutputPin_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
double
dRate
)
{
TRACE
(
"(%p)->(%
lx%08lx, %lx%08l
x, %e)
\n
"
,
iface
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
,
(
ULONG
)(
tStop
>>
32
),
(
ULONG
)
tStop
,
dRate
);
TRACE
(
"(%p)->(%
x%08x, %x%08
x, %e)
\n
"
,
iface
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
,
(
ULONG
)(
tStop
>>
32
),
(
ULONG
)
tStop
,
dRate
);
/* not supposed to do anything in an output pin */
...
...
@@ -849,7 +849,7 @@ HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample,
{
HRESULT
hr
;
TRACE
(
"(%p, %p, %p, %
l
x)
\n
"
,
ppSample
,
tStart
,
tStop
,
dwFlags
);
TRACE
(
"(%p, %p, %p, %x)
\n
"
,
ppSample
,
tStart
,
tStop
,
dwFlags
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
{
...
...
@@ -1173,7 +1173,7 @@ static void CALLBACK PullPin_Thread_Process(ULONG_PTR iface)
* it is harder to debug so for the moment it will stay as it is */
IMediaSample
*
pSample
=
NULL
;
REFERENCE_TIME
rtSampleStop
;
DWORD
dwUser
;
DWORD
_PTR
dwUser
;
TRACE
(
"Process sample
\n
"
);
...
...
@@ -1197,7 +1197,7 @@ static void CALLBACK PullPin_Thread_Process(ULONG_PTR iface)
if
(
SUCCEEDED
(
hr
))
hr
=
This
->
fnSampleProc
(
This
->
pin
.
pUserData
,
pSample
);
else
ERR
(
"Processing error: %
l
x
\n
"
,
hr
);
ERR
(
"Processing error: %x
\n
"
,
hr
);
if
(
pSample
)
IMediaSample_Release
(
pSample
);
...
...
@@ -1221,7 +1221,7 @@ static void CALLBACK PullPin_Thread_Stop(ULONG_PTR iface)
CloseHandle
(
This
->
hThread
);
This
->
hThread
=
NULL
;
if
(
FAILED
(
hr
=
IMemAllocator_Decommit
(
This
->
pAlloc
)))
ERR
(
"Allocator decommit failed with error %
l
x. Possible memory leak
\n
"
,
hr
);
ERR
(
"Allocator decommit failed with error %x. Possible memory leak
\n
"
,
hr
);
}
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
...
...
@@ -1256,7 +1256,7 @@ HRESULT PullPin_InitProcessing(PullPin * This)
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
}
TRACE
(
" -- %
l
x
\n
"
,
hr
);
TRACE
(
" -- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1313,7 +1313,7 @@ HRESULT PullPin_WaitForStateChange(PullPin * This, DWORD dwMilliseconds)
HRESULT
PullPin_Seek
(
PullPin
*
This
,
REFERENCE_TIME
rtStart
,
REFERENCE_TIME
rtStop
)
{
FIXME
(
"(%p)->(%
lx%08lx, %lx%08l
x)
\n
"
,
This
,
(
LONG
)(
rtStart
>>
32
),
(
LONG
)
rtStart
,
(
LONG
)(
rtStop
>>
32
),
(
LONG
)
rtStop
);
FIXME
(
"(%p)->(%
x%08x, %x%08
x)
\n
"
,
This
,
(
LONG
)(
rtStart
>>
32
),
(
LONG
)
rtStart
,
(
LONG
)(
rtStop
>>
32
),
(
LONG
)
rtStop
);
PullPin_BeginFlush
((
IPin
*
)
This
);
/* FIXME: need critical section? */
...
...
dlls/quartz/regsvr.c
View file @
cfbb859f
...
...
@@ -629,7 +629,7 @@ static HRESULT register_filters(struct regsvr_filter const *list)
}
if
(
FAILED
(
hr
))
{
ERR
(
"failed to register with hresult 0x%
l
x
\n
"
,
hr
);
ERR
(
"failed to register with hresult 0x%x
\n
"
,
hr
);
CoTaskMemFree
(
prfp2
);
break
;
}
...
...
dlls/quartz/systemclock.c
View file @
cfbb859f
...
...
@@ -196,7 +196,7 @@ static ULONG WINAPI SystemClockImpl_AddRef(IReferenceClock* iface) {
SystemClockImpl
*
This
=
(
SystemClockImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %
l
d
\n
"
,
This
,
ref
-
1
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
...
...
@@ -219,7 +219,7 @@ static HRESULT WINAPI SystemClockImpl_QueryInterface(IReferenceClock* iface, REF
static
ULONG
WINAPI
SystemClockImpl_Release
(
IReferenceClock
*
iface
)
{
SystemClockImpl
*
This
=
(
SystemClockImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p): ReleaseRef to %
l
d
\n
"
,
This
,
ref
);
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
SystemClockPostMessageToAdviseThread
(
This
,
ADVISE_EXIT
))
{
WaitForSingleObject
(
This
->
adviseThread
,
INFINITE
);
...
...
dlls/quartz/transform.c
View file @
cfbb859f
...
...
@@ -67,13 +67,13 @@ static HRESULT TransformFilter_Sample(LPVOID iface, IMediaSample * pSample)
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Cannot get pointer to sample data (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get pointer to sample data (%x)
\n
"
,
hr
);
return
hr
;
}
hr
=
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
);
if
(
FAILED
(
hr
))
ERR
(
"Cannot get sample time (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get sample time (%x)
\n
"
,
hr
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
...
...
@@ -214,7 +214,7 @@ HRESULT TransformFilter_Create(TransformFilterImpl* pTransformFilter, const CLSI
hr
=
TransformFilter_OutputPin_Construct
(
&
piOutput
,
&
props
,
pTransformFilter
,
TransformFilter_Output_QueryAccept
,
&
pTransformFilter
->
csFilter
,
&
pTransformFilter
->
ppPins
[
1
]);
if
(
FAILED
(
hr
))
ERR
(
"Cannot create output pin (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot create output pin (%x)
\n
"
,
hr
);
}
else
{
...
...
@@ -258,7 +258,7 @@ static ULONG WINAPI TransformFilter_AddRef(IBaseFilter * iface)
TransformFilterImpl
*
This
=
(
TransformFilterImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
refCount
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -268,7 +268,7 @@ static ULONG WINAPI TransformFilter_Release(IBaseFilter * iface)
TransformFilterImpl
*
This
=
(
TransformFilterImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -367,7 +367,7 @@ static HRESULT WINAPI TransformFilter_GetState(IBaseFilter * iface, DWORD dwMill
{
TransformFilterImpl
*
This
=
(
TransformFilterImpl
*
)
iface
;
TRACE
(
"(%p/%p)->(%
l
d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%p/%p)->(%d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
EnterCriticalSection
(
&
This
->
csFilter
);
{
...
...
@@ -519,7 +519,7 @@ static HRESULT WINAPI TransformFilter_InputPin_EndOfStream(IPin * iface)
}
if
(
FAILED
(
hr
))
ERR
(
"%
l
x
\n
"
,
hr
);
ERR
(
"%x
\n
"
,
hr
);
return
hr
;
}
...
...
dlls/quartz/videorenderer.c
View file @
cfbb859f
...
...
@@ -125,7 +125,7 @@ static LRESULT CALLBACK VideoWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
switch
(
uMsg
)
{
case
WM_SIZING
:
/* TRACE("WM_SIZING %
ld %ld %ld %l
d\n", lprect->left, lprect->top, lprect->right, lprect->bottom); */
/* TRACE("WM_SIZING %
d %d %d %
d\n", lprect->left, lprect->top, lprect->right, lprect->bottom); */
SetWindowPos
(
hwnd
,
NULL
,
lprect
->
left
,
lprect
->
top
,
lprect
->
right
-
lprect
->
left
,
lprect
->
bottom
-
lprect
->
top
,
SWP_NOZORDER
);
GetClientRect
(
hwnd
,
&
pVideoRenderer
->
DestRect
);
return
TRUE
;
...
...
@@ -156,7 +156,7 @@ static BOOL CreateRenderingWindow(VideoRendererImpl* This)
{
if
(
!
RegisterClassA
(
&
winclass
))
{
ERR
(
"Unable to register window %
l
x
\n
"
,
GetLastError
());
ERR
(
"Unable to register window %x
\n
"
,
GetLastError
());
return
FALSE
;
}
wnd_class_registered
=
TRUE
;
...
...
@@ -283,7 +283,7 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
LPBYTE
palette
=
NULL
;
HDC
hDC
;
TRACE
(
"%p %p %
l
d
\n
"
,
This
,
data
,
size
);
TRACE
(
"%p %p %d
\n
"
,
This
,
data
,
size
);
sdesc
.
dwSize
=
sizeof
(
sdesc
);
hr
=
IPin_ConnectionMediaType
(
This
->
ppPins
[
0
],
&
amt
);
...
...
@@ -293,13 +293,13 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
}
format
=
(
VIDEOINFOHEADER
*
)
amt
.
pbFormat
;
TRACE
(
"biSize = %
l
d
\n
"
,
format
->
bmiHeader
.
biSize
);
TRACE
(
"biWidth = %
l
d
\n
"
,
format
->
bmiHeader
.
biWidth
);
TRACE
(
"biHeigth = %
l
d
\n
"
,
format
->
bmiHeader
.
biHeight
);
TRACE
(
"biSize = %d
\n
"
,
format
->
bmiHeader
.
biSize
);
TRACE
(
"biWidth = %d
\n
"
,
format
->
bmiHeader
.
biWidth
);
TRACE
(
"biHeigth = %d
\n
"
,
format
->
bmiHeader
.
biHeight
);
TRACE
(
"biPlanes = %d
\n
"
,
format
->
bmiHeader
.
biPlanes
);
TRACE
(
"biBitCount = %d
\n
"
,
format
->
bmiHeader
.
biBitCount
);
TRACE
(
"biCompression = %s
\n
"
,
debugstr_an
((
LPSTR
)
&
(
format
->
bmiHeader
.
biCompression
),
4
));
TRACE
(
"biSizeImage = %
l
d
\n
"
,
format
->
bmiHeader
.
biSizeImage
);
TRACE
(
"biSizeImage = %d
\n
"
,
format
->
bmiHeader
.
biSizeImage
);
width
=
format
->
bmiHeader
.
biWidth
;
height
=
format
->
bmiHeader
.
biHeight
;
...
...
@@ -330,8 +330,8 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
return
E_FAIL
;
}
TRACE
(
"Src Rect: %
ld %ld %ld %l
d
\n
"
,
This
->
SourceRect
.
left
,
This
->
SourceRect
.
top
,
This
->
SourceRect
.
right
,
This
->
SourceRect
.
bottom
);
TRACE
(
"Dst Rect: %
ld %ld %ld %l
d
\n
"
,
This
->
DestRect
.
left
,
This
->
DestRect
.
top
,
This
->
DestRect
.
right
,
This
->
DestRect
.
bottom
);
TRACE
(
"Src Rect: %
d %d %d %
d
\n
"
,
This
->
SourceRect
.
left
,
This
->
SourceRect
.
top
,
This
->
SourceRect
.
right
,
This
->
SourceRect
.
bottom
);
TRACE
(
"Dst Rect: %
d %d %d %
d
\n
"
,
This
->
DestRect
.
left
,
This
->
DestRect
.
top
,
This
->
DestRect
.
right
,
This
->
DestRect
.
bottom
);
StretchDIBits
(
hDC
,
This
->
DestRect
.
left
,
This
->
DestRect
.
top
,
This
->
DestRect
.
right
-
This
->
DestRect
.
left
,
This
->
DestRect
.
bottom
-
This
->
DestRect
.
top
,
This
->
SourceRect
.
left
,
This
->
SourceRect
.
top
,
...
...
@@ -359,13 +359,13 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Cannot get pointer to sample data (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get pointer to sample data (%x)
\n
"
,
hr
);
return
hr
;
}
hr
=
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
);
if
(
FAILED
(
hr
))
ERR
(
"Cannot get sample time (%
l
x)
\n
"
,
hr
);
ERR
(
"Cannot get sample time (%x)
\n
"
,
hr
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
...
...
@@ -506,7 +506,7 @@ static ULONG WINAPI VideoRenderer_AddRef(IBaseFilter * iface)
VideoRendererImpl
*
This
=
(
VideoRendererImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
refCount
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
refCount
-
1
);
return
refCount
;
}
...
...
@@ -516,7 +516,7 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface)
VideoRendererImpl
*
This
=
(
VideoRendererImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
refCount
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
refCount
+
1
);
if
(
!
refCount
)
{
...
...
@@ -609,7 +609,7 @@ static HRESULT WINAPI VideoRenderer_GetState(IBaseFilter * iface, DWORD dwMilliS
{
VideoRendererImpl
*
This
=
(
VideoRendererImpl
*
)
iface
;
TRACE
(
"(%p/%p)->(%
l
d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%p/%p)->(%d, %p)
\n
"
,
This
,
iface
,
dwMilliSecsTimeout
,
pState
);
EnterCriticalSection
(
&
This
->
csFilter
);
{
...
...
@@ -825,7 +825,7 @@ static HRESULT WINAPI Basicvideo_GetTypeInfo(IBasicVideo *iface,
ITypeInfo
**
ppTInfo
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IBasicVideo_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
FIXME
(
"(%p/%p)->(%d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
return
S_OK
;
}
...
...
@@ -838,7 +838,7 @@ static HRESULT WINAPI Basicvideo_GetIDsOfNames(IBasicVideo *iface,
DISPID
*
rgDispId
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IBasicVideo_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%s (%p), %p, %d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
FIXME
(
"(%p/%p)->(%s (%p), %p, %d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
S_OK
;
}
...
...
@@ -854,7 +854,7 @@ static HRESULT WINAPI Basicvideo_Invoke(IBasicVideo *iface,
UINT
*
puArgErr
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IBasicVideo_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%
ld, %s (%p), %l
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
FIXME
(
"(%p/%p)->(%
d, %s (%p), %
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
return
S_OK
;
}
...
...
@@ -1322,7 +1322,7 @@ static HRESULT WINAPI Videowindow_GetTypeInfo(IVideoWindow *iface,
ITypeInfo
**
ppTInfo
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
FIXME
(
"(%p/%p)->(%d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
iTInfo
,
lcid
,
ppTInfo
);
return
S_OK
;
}
...
...
@@ -1335,7 +1335,7 @@ static HRESULT WINAPI Videowindow_GetIDsOfNames(IVideoWindow *iface,
DISPID
*
rgDispId
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%s (%p), %p, %d, %
l
d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
FIXME
(
"(%p/%p)->(%s (%p), %p, %d, %d, %p): stub !!!
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
S_OK
;
}
...
...
@@ -1351,7 +1351,7 @@ static HRESULT WINAPI Videowindow_Invoke(IVideoWindow *iface,
UINT
*
puArgErr
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%
ld, %s (%p), %l
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
FIXME
(
"(%p/%p)->(%
d, %s (%p), %
d, %04x, %p, %p, %p, %p): stub !!!
\n
"
,
This
,
iface
,
dispIdMember
,
debugstr_guid
(
riid
),
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
return
S_OK
;
}
...
...
@@ -1387,7 +1387,7 @@ static HRESULT WINAPI Videowindow_put_WindowStyle(IVideoWindow *iface,
old
=
GetWindowLongA
(
This
->
hWnd
,
GWL_STYLE
);
TRACE
(
"(%p/%p)->(%
l
x -> %lx)
\n
"
,
This
,
iface
,
old
,
WindowStyle
);
TRACE
(
"(%p/%p)->(%x -> %lx)
\n
"
,
This
,
iface
,
old
,
WindowStyle
);
if
(
WindowStyle
&
(
WS_DISABLED
|
WS_HSCROLL
|
WS_ICONIC
|
WS_MAXIMIZE
|
WS_MINIMIZE
|
WS_VSCROLL
))
return
E_INVALIDARG
;
...
...
@@ -1618,7 +1618,7 @@ static HRESULT WINAPI Videowindow_put_Owner(IVideoWindow *iface,
OAHWND
Owner
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%08
l
x)
\n
"
,
This
,
iface
,
(
DWORD
)
Owner
);
TRACE
(
"(%p/%p)->(%08x)
\n
"
,
This
,
iface
,
(
DWORD
)
Owner
);
SetParent
(
This
->
hWnd
,
(
HWND
)
Owner
);
...
...
@@ -1629,7 +1629,7 @@ static HRESULT WINAPI Videowindow_get_Owner(IVideoWindow *iface,
OAHWND
*
Owner
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%08
l
x)
\n
"
,
This
,
iface
,
(
DWORD
)
Owner
);
TRACE
(
"(%p/%p)->(%08x)
\n
"
,
This
,
iface
,
(
DWORD
)
Owner
);
*
(
HWND
*
)
Owner
=
GetParent
(
This
->
hWnd
);
...
...
@@ -1640,7 +1640,7 @@ static HRESULT WINAPI Videowindow_put_MessageDrain(IVideoWindow *iface,
OAHWND
Drain
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%08
l
x)
\n
"
,
This
,
iface
,
(
DWORD
)
Drain
);
TRACE
(
"(%p/%p)->(%08x)
\n
"
,
This
,
iface
,
(
DWORD
)
Drain
);
This
->
hWndMsgDrain
=
(
HWND
)
Drain
;
...
...
@@ -1728,7 +1728,7 @@ static HRESULT WINAPI Videowindow_NotifyOwnerMessage(IVideoWindow *iface,
LONG_PTR
lParam
)
{
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IVideoWindow_vtbl
,
iface
);
TRACE
(
"(%p/%p)->(%08
l
x, %ld, %08lx, %08lx)
\n
"
,
This
,
iface
,
(
DWORD
)
hwnd
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"(%p/%p)->(%08x, %ld, %08lx, %08lx)
\n
"
,
This
,
iface
,
(
DWORD
)
hwnd
,
uMsg
,
wParam
,
lParam
);
if
(
!
PostMessageA
(
This
->
hWnd
,
uMsg
,
wParam
,
lParam
))
return
E_FAIL
;
...
...
dlls/quartz/waveparser.c
View file @
cfbb859f
...
...
@@ -95,7 +95,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample)
}
else
{
TRACE
(
"Skipping sending sample due to error (%
l
x)
\n
"
,
hr
);
TRACE
(
"Skipping sending sample due to error (%x)
\n
"
,
hr
);
This
->
pCurrentSample
=
NULL
;
break
;
}
...
...
@@ -147,7 +147,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample)
hr
=
OutputPin_SendSample
(
&
pOutputPin
->
pin
,
This
->
pCurrentSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
ERR
(
"Error sending sample (%
l
x)
\n
"
,
hr
);
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
}
if
(
This
->
pCurrentSample
)
...
...
@@ -188,7 +188,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample)
}
if
(
FAILED
(
hr
))
{
ERR
(
"%
l
x
\n
"
,
hr
);
ERR
(
"%x
\n
"
,
hr
);
break
;
}
}
...
...
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