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
5e407cec
Commit
5e407cec
authored
Jul 21, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/vfwcapture: Return VFW_S_CANT_CUE from GetState(), not Pause().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f0347bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vfwcapture.c
dlls/qcap/vfwcapture.c
+8
-2
No files found.
dlls/qcap/vfwcapture.c
View file @
5e407cec
...
...
@@ -124,7 +124,7 @@ static HRESULT vfw_capture_init_stream(struct strmbase_filter *iface)
VfwCapture
*
filter
=
impl_from_strmbase_filter
(
iface
);
filter
->
device
->
ops
->
init_stream
(
filter
->
device
);
return
VFW_S_CANT_CUE
;
return
S_OK
;
}
static
HRESULT
vfw_capture_start_stream
(
struct
strmbase_filter
*
iface
,
REFERENCE_TIME
time
)
...
...
@@ -140,7 +140,7 @@ static HRESULT vfw_capture_stop_stream(struct strmbase_filter *iface)
VfwCapture
*
filter
=
impl_from_strmbase_filter
(
iface
);
filter
->
device
->
ops
->
stop_stream
(
filter
->
device
);
return
VFW_S_CANT_CUE
;
return
S_OK
;
}
static
HRESULT
vfw_capture_cleanup_stream
(
struct
strmbase_filter
*
iface
)
...
...
@@ -151,6 +151,11 @@ static HRESULT vfw_capture_cleanup_stream(struct strmbase_filter *iface)
return
S_OK
;
}
static
HRESULT
vfw_capture_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
=
vfw_capture_get_pin
,
...
...
@@ -160,6 +165,7 @@ static const struct strmbase_filter_ops filter_ops =
.
filter_start_stream
=
vfw_capture_start_stream
,
.
filter_stop_stream
=
vfw_capture_stop_stream
,
.
filter_cleanup_stream
=
vfw_capture_cleanup_stream
,
.
filter_wait_state
=
vfw_capture_wait_state
,
};
static
HRESULT
WINAPI
AMStreamConfig_QueryInterface
(
IAMStreamConfig
*
iface
,
REFIID
iid
,
void
**
out
)
...
...
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