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
2238658e
Commit
2238658e
authored
Jul 13, 2023
by
Tim Clem
Committed by
Alexandre Julliard
Jul 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Release filter graph and interfaces if WMPControls::play fails.
parent
424994c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
player.c
dlls/wmp/player.c
+29
-0
No files found.
dlls/wmp/player.c
View file @
2238658e
...
@@ -1509,6 +1509,35 @@ static HRESULT WINAPI WMPControls_play(IWMPControls *iface)
...
@@ -1509,6 +1509,35 @@ static HRESULT WINAPI WMPControls_play(IWMPControls *iface)
hres
=
IGraphBuilder_QueryInterface
(
This
->
filter_graph
,
&
IID_IBasicAudio
,
(
void
**
)
&
This
->
basic_audio
);
hres
=
IGraphBuilder_QueryInterface
(
This
->
filter_graph
,
&
IID_IBasicAudio
,
(
void
**
)
&
This
->
basic_audio
);
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
IWMPSettings_put_volume
(
&
This
->
IWMPSettings_iface
,
This
->
volume
);
hres
=
IWMPSettings_put_volume
(
&
This
->
IWMPSettings_iface
,
This
->
volume
);
if
(
FAILED
(
hres
))
{
if
(
This
->
filter_graph
)
{
IGraphBuilder_Release
(
This
->
filter_graph
);
This
->
filter_graph
=
NULL
;
}
if
(
This
->
media_control
)
{
IMediaControl_Release
(
This
->
media_control
);
This
->
media_control
=
NULL
;
}
if
(
This
->
media_seeking
)
{
IMediaSeeking_Release
(
This
->
media_seeking
);
This
->
media_seeking
=
NULL
;
}
if
(
This
->
media_event
)
{
IMediaEvent_Release
(
This
->
media_event
);
This
->
media_event
=
NULL
;
}
if
(
This
->
basic_audio
)
{
IBasicAudio_Release
(
This
->
basic_audio
);
This
->
basic_audio
=
NULL
;
}
}
}
}
update_state
(
This
,
DISPID_WMPCOREEVENT_PLAYSTATECHANGE
,
wmppsTransitioning
);
update_state
(
This
,
DISPID_WMPCOREEVENT_PLAYSTATECHANGE
,
wmppsTransitioning
);
...
...
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