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
44cd11ef
Commit
44cd11ef
authored
Jul 13, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/smartteefilter: Return VFW_S_CANT_CUE from GetState() if paused.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44c0e691
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
smartteefilter.c
dlls/qcap/smartteefilter.c
+6
-0
smartteefilter.c
dlls/qcap/tests/smartteefilter.c
+2
-2
No files found.
dlls/qcap/smartteefilter.c
View file @
44cd11ef
...
...
@@ -62,10 +62,16 @@ static void smart_tee_destroy(struct strmbase_filter *iface)
CoTaskMemFree
(
filter
);
}
static
HRESULT
smart_tee_wait_state
(
struct
strmbase_filter
*
iface
,
DWORD
timeout
)
{
return
iface
->
state
==
State_Paused
?
VFW_S_CANT_CUE
:
S_OK
;
}
static
const
struct
strmbase_filter_ops
filter_ops
=
{
.
filter_get_pin
=
smart_tee_get_pin
,
.
filter_destroy
=
smart_tee_destroy
,
.
filter_wait_state
=
smart_tee_wait_state
,
};
static
HRESULT
sink_query_accept
(
struct
strmbase_pin
*
base
,
const
AM_MEDIA_TYPE
*
pmt
)
...
...
dlls/qcap/tests/smartteefilter.c
View file @
44cd11ef
...
...
@@ -2232,7 +2232,7 @@ static void test_unconnected_filter_state(void)
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
);
ok
(
hr
==
VFW_S_CANT_CUE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Run
(
filter
,
0
);
...
...
@@ -2246,7 +2246,7 @@ static void test_unconnected_filter_state(void)
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
);
ok
(
hr
==
VFW_S_CANT_CUE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
state
==
State_Paused
,
"Got state %u.
\n
"
,
state
);
hr
=
IBaseFilter_Stop
(
filter
);
...
...
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