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
d9f6a377
Commit
d9f6a377
authored
Feb 24, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Add Avi Mux input pin IMemInputPin::GetAllocatorRequirements implementation.
parent
6cbf44b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
avimux.c
dlls/qcap/avimux.c
+9
-2
qcap.c
dlls/qcap/tests/qcap.c
+17
-0
No files found.
dlls/qcap/avimux.c
View file @
d9f6a377
...
...
@@ -1365,8 +1365,15 @@ static HRESULT WINAPI AviMuxIn_MemInputPin_GetAllocatorRequirements(
{
AviMuxIn
*
avimuxin
=
AviMuxIn_from_IMemInputPin
(
iface
);
AviMux
*
This
=
impl_from_in_IPin
(
&
avimuxin
->
pin
.
pin
.
IPin_iface
);
FIXME
(
"(%p:%s)->(%p)
\n
"
,
This
,
debugstr_w
(
avimuxin
->
pin
.
pin
.
pinInfo
.
achName
),
pProps
);
return
E_NOTIMPL
;
TRACE
(
"(%p:%s)->(%p)
\n
"
,
This
,
debugstr_w
(
avimuxin
->
pin
.
pin
.
pinInfo
.
achName
),
pProps
);
if
(
!
pProps
)
return
E_POINTER
;
pProps
->
cbAlign
=
1
;
pProps
->
cbPrefix
=
8
;
return
S_OK
;
}
static
HRESULT
WINAPI
AviMuxIn_MemInputPin_Receive
(
...
...
dlls/qcap/tests/qcap.c
View file @
d9f6a377
...
...
@@ -1232,6 +1232,8 @@ static void test_AviMux(void)
IBaseFilter
*
avimux
;
IEnumPins
*
ep
;
IEnumMediaTypes
*
emt
;
IMemInputPin
*
memin
;
ALLOCATOR_PROPERTIES
props
;
HRESULT
hr
;
init_test_filter
(
&
source_filter
,
PINDIR_OUTPUT
,
SOURCE_FILTER
);
...
...
@@ -1336,6 +1338,21 @@ static void test_AviMux(void)
CHECK_CALLED
(
NotifyAllocator
);
CHECK_CALLED
(
Reconnect
);
hr
=
IPin_QueryInterface
(
avimux_in
,
&
IID_IMemInputPin
,
(
void
**
)
&
memin
);
ok
(
hr
==
S_OK
,
"QueryInterface returned %x
\n
"
,
hr
);
props
.
cBuffers
=
0xdeadbee1
;
props
.
cbBuffer
=
0xdeadbee2
;
props
.
cbAlign
=
0xdeadbee3
;
props
.
cbPrefix
=
0xdeadbee4
;
hr
=
IMemInputPin_GetAllocatorRequirements
(
memin
,
&
props
);
ok
(
hr
==
S_OK
,
"GetAllocatorRequirments returned %x
\n
"
,
hr
);
ok
(
props
.
cBuffers
==
0xdeadbee1
,
"cBuffers = %d
\n
"
,
props
.
cBuffers
);
ok
(
props
.
cbBuffer
==
0xdeadbee2
,
"cbBuffer = %d
\n
"
,
props
.
cbBuffer
);
ok
(
props
.
cbAlign
==
1
,
"cbAlign = %d
\n
"
,
props
.
cbAlign
);
ok
(
props
.
cbPrefix
==
8
,
"cbPrefix = %d
\n
"
,
props
.
cbPrefix
);
IMemInputPin_Release
(
memin
);
hr
=
IPin_Disconnect
(
avimux_out
);
ok
(
hr
==
S_OK
,
"Disconnect returned %x
\n
"
,
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