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
079bb8a5
Commit
079bb8a5
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Win64 printf format warning fixes.
parent
611220d5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
27 deletions
+26
-27
Makefile.in
dlls/qcap/Makefile.in
+0
-1
capturegraph.c
dlls/qcap/capturegraph.c
+2
-2
enummedia.c
dlls/qcap/enummedia.c
+3
-3
enumpins.c
dlls/qcap/enumpins.c
+2
-2
pin.c
dlls/qcap/pin.c
+3
-3
v4l.c
dlls/qcap/v4l.c
+7
-7
vfwcapture.c
dlls/qcap/vfwcapture.c
+9
-9
No files found.
dlls/qcap/Makefile.in
View file @
079bb8a5
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
qcap.dll
IMPORTS
=
ole32 oleaut32 user32 gdi32 advapi32 kernel32
EXTRALIBS
=
-lstrmiids
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
capturegraph.c
\
...
...
dlls/qcap/capturegraph.c
View file @
079bb8a5
...
...
@@ -145,7 +145,7 @@ fnCaptureGraphBuilder2_AddRef(ICaptureGraphBuilder2 * iface)
CaptureGraphImpl
*
This
=
impl_from_ICaptureGraphBuilder2
(
iface
);
DWORD
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)->() AddRef from %
l
d
\n
"
,
This
,
iface
,
ref
-
1
);
TRACE
(
"(%p/%p)->() AddRef from %d
\n
"
,
This
,
iface
,
ref
-
1
);
return
ref
;
}
...
...
@@ -155,7 +155,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
CaptureGraphImpl
*
This
=
impl_from_ICaptureGraphBuilder2
(
iface
);
DWORD
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)->() Release from %
l
d
\n
"
,
This
,
iface
,
ref
+
1
);
TRACE
(
"(%p/%p)->() Release from %d
\n
"
,
This
,
iface
,
ref
+
1
);
if
(
!
ref
)
{
...
...
dlls/qcap/enummedia.c
View file @
079bb8a5
...
...
@@ -189,8 +189,8 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Next(IEnumMediaTypes * iface,
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
)
{
...
...
@@ -221,7 +221,7 @@ static HRESULT WINAPI IEnumMediaTypesImpl_Skip(IEnumMediaTypes * iface,
{
IEnumMediaTypesImpl
*
This
=
(
IEnumMediaTypesImpl
*
)
iface
;
TRACE
(
"(%
l
u)
\n
"
,
cMediaTypes
);
TRACE
(
"(%u)
\n
"
,
cMediaTypes
);
if
(
This
->
uIndex
+
cMediaTypes
<
This
->
enumMediaDetails
.
cMediaTypes
)
{
...
...
dlls/qcap/enumpins.c
View file @
079bb8a5
...
...
@@ -116,7 +116,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
)
{
...
...
@@ -141,7 +141,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/qcap/pin.c
View file @
079bb8a5
...
...
@@ -219,7 +219,7 @@ static HRESULT OutputPin_ConnectSpecific(IPin * iface, IPin * pReceivePin, const
DeleteMediaType
(
&
This
->
pin
.
mtCurrent
);
}
TRACE
(
" -- %
l
x
\n
"
,
hr
);
TRACE
(
" -- %x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -318,7 +318,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
;
}
...
...
@@ -361,7 +361,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
);
{
...
...
dlls/qcap/v4l.c
View file @
079bb8a5
...
...
@@ -241,7 +241,7 @@ HRESULT qcap_driver_set_format(Capture *capBox, AM_MEDIA_TYPE * mT)
if
(
format
->
bmiHeader
.
biBitCount
!=
24
||
format
->
bmiHeader
.
biCompression
!=
BI_RGB
)
{
FIXME
(
"unsupported media type %d %
l
d
\n
"
,
format
->
bmiHeader
.
biBitCount
,
FIXME
(
"unsupported media type %d %d
\n
"
,
format
->
bmiHeader
.
biBitCount
,
format
->
bmiHeader
.
biCompression
);
return
VFW_E_INVALIDMEDIATYPE
;
}
...
...
@@ -299,7 +299,7 @@ HRESULT qcap_driver_get_format(Capture *capBox, AM_MEDIA_TYPE ** mT)
mT
[
0
]
->
bTemporalCompression
=
FALSE
;
mT
[
0
]
->
pUnk
=
NULL
;
mT
[
0
]
->
lSampleSize
=
capBox
->
outputwidth
*
capBox
->
outputheight
*
capBox
->
bitDepth
/
8
;
TRACE
(
"Output format: %dx%d - %d bits = %
l
u KB
\n
"
,
capBox
->
outputwidth
,
TRACE
(
"Output format: %dx%d - %d bits = %u KB
\n
"
,
capBox
->
outputwidth
,
capBox
->
outputheight
,
capBox
->
bitDepth
,
mT
[
0
]
->
lSampleSize
/
1024
);
vi
->
rcSource
.
left
=
0
;
vi
->
rcSource
.
top
=
0
;
vi
->
rcTarget
.
left
=
0
;
vi
->
rcTarget
.
top
=
0
;
...
...
@@ -608,14 +608,14 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
capBox
->
renderer
(
capBox
,
pOutput
,
pInput
);
Resize
(
capBox
,
pTarget
,
pOutput
);
hr
=
OutputPin_SendSample
((
OutputPin
*
)
capBox
->
pOut
,
pSample
);
TRACE
(
"%p -> Frame %lu: %
l
x
\n
"
,
capBox
,
++
framecount
,
hr
);
TRACE
(
"%p -> Frame %lu: %x
\n
"
,
capBox
,
++
framecount
,
hr
);
IMediaSample_Release
(
pSample
);
V4l_FreeFrame
(
capBox
);
}
LeaveCriticalSection
(
&
capBox
->
CritSect
);
if
(
FAILED
(
hr
)
&&
hr
!=
VFW_E_NOT_CONNECTED
)
{
ERR
(
"Received error: %
l
x
\n
"
,
hr
);
ERR
(
"Received error: %x
\n
"
,
hr
);
goto
cfail
;
}
}
...
...
@@ -678,7 +678,7 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
if
(
pAlloc
)
IMemAllocator_Release
(
pAlloc
);
TRACE
(
"Committing allocator: %
l
x
\n
"
,
hr
);
TRACE
(
"Committing allocator: %x
\n
"
,
hr
);
}
thread
=
CreateThread
(
NULL
,
0
,
ReadThread
,
capBox
,
0
,
NULL
);
...
...
@@ -689,7 +689,7 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
LeaveCriticalSection
(
&
capBox
->
CritSect
);
return
S_OK
;
}
ERR
(
"Creating thread failed.. %
l
x
\n
"
,
GetLastError
());
ERR
(
"Creating thread failed.. %x
\n
"
,
GetLastError
());
LeaveCriticalSection
(
&
capBox
->
CritSect
);
return
E_FAIL
;
}
...
...
@@ -762,7 +762,7 @@ HRESULT qcap_driver_stop(Capture *capBox, FILTER_STATE *state)
IPin_Release
(
pConnect
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_COMMITTED
)
WARN
(
"Decommitting allocator: %
l
x
\n
"
,
hr
);
WARN
(
"Decommitting allocator: %x
\n
"
,
hr
);
}
V4l_Unprepare
(
capBox
);
}
...
...
dlls/qcap/vfwcapture.c
View file @
079bb8a5
...
...
@@ -178,7 +178,7 @@ static ULONG WINAPI VfwCapture_AddRef(IBaseFilter * iface)
VfwCapture
*
This
=
(
VfwCapture
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"%p->() New refcount: %
l
d
\n
"
,
This
,
refCount
);
TRACE
(
"%p->() New refcount: %d
\n
"
,
This
,
refCount
);
return
refCount
;
}
...
...
@@ -188,7 +188,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface)
VfwCapture
*
This
=
(
VfwCapture
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"%p->() New refcount: %
l
d
\n
"
,
This
,
refCount
);
TRACE
(
"%p->() New refcount: %d
\n
"
,
This
,
refCount
);
if
(
!
refCount
)
{
...
...
@@ -246,7 +246,7 @@ static HRESULT WINAPI VfwCapture_Pause(IBaseFilter * iface)
static
HRESULT
WINAPI
VfwCapture_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
tStart
)
{
VfwCapture
*
This
=
(
VfwCapture
*
)
iface
;
TRACE
(
"(%
lx%08l
x)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
);
TRACE
(
"(%
x%08
x)
\n
"
,
(
ULONG
)(
tStart
>>
32
),
(
ULONG
)
tStart
);
return
qcap_driver_run
(
This
->
driver_info
,
&
This
->
state
);
}
...
...
@@ -256,7 +256,7 @@ VfwCapture_GetState( IBaseFilter * iface, DWORD dwMilliSecsTimeout,
{
VfwCapture
*
This
=
(
VfwCapture
*
)
iface
;
TRACE
(
"(%
l
u, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
TRACE
(
"(%u, %p)
\n
"
,
dwMilliSecsTimeout
,
pState
);
*
pState
=
This
->
state
;
return
S_OK
;
...
...
@@ -412,7 +412,7 @@ AMStreamConfig_SetFormat(IAMStreamConfig *iface, AM_MEDIA_TYPE *pmt)
if
(
pin
->
pConnectedTo
!=
NULL
)
{
hr
=
IPin_QueryAccept
(
pin
->
pConnectedTo
,
pmt
);
TRACE
(
"Would accept: %
l
d
\n
"
,
hr
);
TRACE
(
"Would accept: %d
\n
"
,
hr
);
if
(
hr
==
S_FALSE
)
return
VFW_E_INVALIDMEDIATYPE
;
}
...
...
@@ -424,7 +424,7 @@ AMStreamConfig_SetFormat(IAMStreamConfig *iface, AM_MEDIA_TYPE *pmt)
if
(
SUCCEEDED
(
hr
))
TRACE
(
"Reconnection completed, with new media format..
\n
"
);
}
TRACE
(
"Returning: %
l
d
\n
"
,
hr
);
TRACE
(
"Returning: %d
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -796,7 +796,7 @@ static ULONG WINAPI VfwPin_AddRef(IPin * iface)
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
pin
.
pin
.
refCount
);
TRACE
(
"() -> new refcount: %
l
u
\n
"
,
refCount
);
TRACE
(
"() -> new refcount: %u
\n
"
,
refCount
);
return
refCount
;
}
...
...
@@ -807,7 +807,7 @@ VfwPin_Release(IPin * iface)
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
pin
.
pin
.
refCount
);
TRACE
(
"() -> new refcount: %
l
u
\n
"
,
refCount
);
TRACE
(
"() -> new refcount: %u
\n
"
,
refCount
);
if
(
!
refCount
)
{
...
...
@@ -830,7 +830,7 @@ VfwPin_EnumMediaTypes(IPin * iface, IEnumMediaTypes ** ppEnum)
emd
.
pMediaTypes
=
pmt
;
if
(
SUCCEEDED
(
hr
))
hr
=
IEnumMediaTypesImpl_Construct
(
&
emd
,
ppEnum
);
TRACE
(
"%p -- %
l
x
\n
"
,
This
,
hr
);
TRACE
(
"%p -- %x
\n
"
,
This
,
hr
);
DeleteMediaType
(
pmt
);
return
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