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
ed4df696
Commit
ed4df696
authored
Feb 06, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Use IMemAllocator::GetBuffer() and IMediaSample::SetTime() directly.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
859809be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
avico.c
dlls/qcap/avico.c
+7
-2
vfwcapture.c
dlls/qcap/vfwcapture.c
+1
-1
No files found.
dlls/qcap/avico.c
View file @
ed4df696
...
...
@@ -350,9 +350,14 @@ static HRESULT WINAPI AVICompressorIn_Receive(struct strmbase_sink *base, IMedia
return
hres
;
}
hres
=
BaseOutputPinImpl_GetDeliveryBuffer
(
&
This
->
source
,
&
out_sample
,
&
start
,
&
stop
,
0
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
=
IMemAllocator_GetBuffer
(
This
->
source
.
pAllocator
,
&
out_sample
,
&
start
,
&
stop
,
0
)))
{
ERR
(
"Failed to get sample, hr %#x.
\n
"
,
hres
);
return
hres
;
}
if
(
FAILED
(
hres
=
IMediaSample_SetTime
(
out_sample
,
&
start
,
&
stop
)))
ERR
(
"Failed to set time, hr %#x.
\n
"
,
hres
);
hres
=
IMediaSample_GetPointer
(
out_sample
,
&
buf
);
if
(
FAILED
(
hres
))
...
...
dlls/qcap/vfwcapture.c
View file @
ed4df696
...
...
@@ -165,7 +165,7 @@ static DWORD WINAPI stream_thread(void *arg)
LeaveCriticalSection
(
&
filter
->
state_cs
);
if
(
FAILED
(
hr
=
BaseOutputPinImpl_GetDeliveryBuffer
(
&
filter
->
source
,
&
sample
,
NULL
,
NULL
,
0
)))
if
(
FAILED
(
hr
=
IMemAllocator_GetBuffer
(
filter
->
source
.
pAllocator
,
&
sample
,
NULL
,
NULL
,
0
)))
{
ERR
(
"Failed to get sample, hr %#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