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
90d83c42
Commit
90d83c42
authored
Mar 12, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Assign to structs instead of using memcpy.
parent
fd499df4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
enummedia.c
dlls/qcap/enummedia.c
+1
-1
pin.c
dlls/qcap/pin.c
+1
-1
v4l.c
dlls/qcap/v4l.c
+3
-3
No files found.
dlls/qcap/enummedia.c
View file @
90d83c42
...
...
@@ -37,7 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(qcap);
HRESULT
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
)
{
memcpy
(
pDest
,
pSrc
,
sizeof
(
AM_MEDIA_TYPE
))
;
*
pDest
=
*
pSrc
;
if
(
!
pSrc
->
pbFormat
)
return
S_OK
;
if
(
!
(
pDest
->
pbFormat
=
CoTaskMemAlloc
(
pSrc
->
cbFormat
)))
return
E_OUTOFMEMORY
;
...
...
dlls/qcap/pin.c
View file @
90d83c42
...
...
@@ -242,7 +242,7 @@ HRESULT OutputPin_Init(const PIN_INFO * pPinInfo, const ALLOCATOR_PROPERTIES * p
pPinImpl
->
pConnectSpecific
=
OutputPin_ConnectSpecific
;
if
(
props
)
{
memcpy
(
&
pPinImpl
->
allocProps
,
props
,
sizeof
(
pPinImpl
->
allocProps
))
;
pPinImpl
->
allocProps
=
*
props
;
if
(
pPinImpl
->
allocProps
.
cbAlign
==
0
)
pPinImpl
->
allocProps
.
cbAlign
=
1
;
}
...
...
dlls/qcap/v4l.c
View file @
90d83c42
...
...
@@ -293,9 +293,9 @@ HRESULT qcap_driver_get_format(const Capture *capBox, AM_MEDIA_TYPE ** mT)
CoTaskMemFree
(
mT
[
0
]);
return
E_OUTOFMEMORY
;
}
m
emcpy
(
&
mT
[
0
]
->
majortype
,
&
MEDIATYPE_Video
,
sizeof
(
GUID
))
;
m
emcpy
(
&
mT
[
0
]
->
subtype
,
&
MEDIASUBTYPE_RGB24
,
sizeof
(
GUID
))
;
m
emcpy
(
&
mT
[
0
]
->
formattype
,
&
FORMAT_VideoInfo
,
sizeof
(
GUID
))
;
m
T
[
0
]
->
majortype
=
MEDIATYPE_Video
;
m
T
[
0
]
->
subtype
=
MEDIASUBTYPE_RGB24
;
m
T
[
0
]
->
formattype
=
FORMAT_VideoInfo
;
mT
[
0
]
->
bFixedSizeSamples
=
TRUE
;
mT
[
0
]
->
bTemporalCompression
=
FALSE
;
mT
[
0
]
->
pUnk
=
NULL
;
...
...
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