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
bc42cc42
Commit
bc42cc42
authored
Apr 10, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Get rid of V4l_Prepare().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b42f7912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
v4l.c
dlls/qcap/v4l.c
+3
-12
No files found.
dlls/qcap/v4l.c
View file @
bc42cc42
...
...
@@ -122,15 +122,6 @@ static int xioctl(int fd, int request, void * arg)
return
r
;
}
/* Prepare the capture buffers */
static
HRESULT
V4l_Prepare
(
Capture
*
device
)
{
device
->
image_size
=
device
->
height
*
device
->
width
*
3
;
if
(
!
(
device
->
image_data
=
heap_alloc
(
device
->
image_size
)))
return
E_OUTOFMEMORY
;
return
S_OK
;
}
HRESULT
qcap_driver_destroy
(
Capture
*
capBox
)
{
TRACE
(
"%p
\n
"
,
capBox
);
...
...
@@ -392,10 +383,10 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
ULONG
framecount
=
0
;
unsigned
char
*
pTarget
,
*
pInput
,
*
pOutput
;
hr
=
V4l_Prepare
(
capBox
)
;
if
(
FAILED
(
hr
))
capBox
->
image_size
=
capBox
->
height
*
capBox
->
width
*
3
;
if
(
!
(
capBox
->
image_data
=
heap_alloc
(
capBox
->
image_size
)
))
{
ERR
(
"
Stop IFilterGraph: %x
\n
"
,
hr
);
ERR
(
"
Failed to allocate memory.
\n
"
);
capBox
->
thread
=
0
;
capBox
->
stopped
=
TRUE
;
return
0
;
...
...
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