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
abb547f4
Commit
abb547f4
authored
Oct 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/audiorecord: Use strmbase state change methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a760f94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
40 deletions
+13
-40
audiorecord.c
dlls/qcap/audiorecord.c
+3
-30
audiorecord.c
dlls/qcap/tests/audiorecord.c
+10
-10
No files found.
dlls/qcap/audiorecord.c
View file @
abb547f4
...
...
@@ -44,46 +44,19 @@ static inline AudioRecord *impl_from_strmbase_filter(struct strmbase_filter *fil
return
CONTAINING_RECORD
(
filter
,
AudioRecord
,
filter
);
}
static
inline
AudioRecord
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
{
struct
strmbase_filter
*
filter
=
CONTAINING_RECORD
(
iface
,
struct
strmbase_filter
,
IBaseFilter_iface
);
return
impl_from_strmbase_filter
(
filter
);
}
static
inline
AudioRecord
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AudioRecord
,
IPersistPropertyBag_iface
);
}
static
HRESULT
WINAPI
AudioRecord_Stop
(
IBaseFilter
*
iface
)
{
AudioRecord
*
This
=
impl_from_IBaseFilter
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioRecord_Pause
(
IBaseFilter
*
iface
)
{
AudioRecord
*
This
=
impl_from_IBaseFilter
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioRecord_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
tStart
)
{
AudioRecord
*
This
=
impl_from_IBaseFilter
(
iface
);
FIXME
(
"(%p, %s): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
tStart
));
return
E_NOTIMPL
;
}
static
const
IBaseFilterVtbl
AudioRecordVtbl
=
{
BaseFilterImpl_QueryInterface
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_Release
,
BaseFilterImpl_GetClassID
,
AudioRecord
_Stop
,
AudioRecord
_Pause
,
AudioRecord
_Run
,
BaseFilterImpl
_Stop
,
BaseFilterImpl
_Pause
,
BaseFilterImpl
_Run
,
BaseFilterImpl_GetState
,
BaseFilterImpl_SetSyncSource
,
BaseFilterImpl_GetSyncSource
,
...
...
dlls/qcap/tests/audiorecord.c
View file @
abb547f4
...
...
@@ -255,42 +255,42 @@ static void test_unconnected_filter_state(IBaseFilter *filter)
ok
(
state
==
State_Stopped
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Pause
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
todo_wine
ok
(
hr
==
VFW_S_CANT_CUE
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Run
(
filter
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
State_Running
,
"Got state %u.
\n
"
,
state
);
ok
(
state
==
State_Running
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Pause
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
todo_wine
ok
(
hr
==
VFW_S_CANT_CUE
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Stop
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
state
==
State_Stopped
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Run
(
filter
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
State_Running
,
"Got state %u.
\n
"
,
state
);
ok
(
state
==
State_Running
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Stop
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IBaseFilter_GetState
(
filter
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#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