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
c6c3d6f9
Commit
c6c3d6f9
authored
Oct 22, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Do not clear media item when playback ends.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fdc2d415
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
player.c
dlls/mfplay/player.c
+1
-16
No files found.
dlls/mfplay/player.c
View file @
c6c3d6f9
...
...
@@ -1860,21 +1860,6 @@ static void media_player_create_forward_event(struct media_player *player, HRESU
LeaveCriticalSection
(
&
player
->
cs
);
}
static
void
media_player_create_playback_ended_event
(
struct
media_player
*
player
,
HRESULT
event_status
,
struct
media_event
**
event
)
{
EnterCriticalSection
(
&
player
->
cs
);
if
(
SUCCEEDED
(
media_event_create
(
player
,
MFP_EVENT_TYPE_PLAYBACK_ENDED
,
event_status
,
player
->
item
,
event
)))
{
if
(
player
->
item
)
IMFPMediaItem_Release
(
player
->
item
);
player
->
item
=
NULL
;
}
LeaveCriticalSection
(
&
player
->
cs
);
}
static
HRESULT
WINAPI
media_player_session_events_callback_Invoke
(
IMFAsyncCallback
*
iface
,
IMFAsyncResult
*
result
)
{
...
...
@@ -1936,7 +1921,7 @@ static HRESULT WINAPI media_player_session_events_callback_Invoke(IMFAsyncCallba
if
(
SUCCEEDED
(
IMFMediaEvent_GetUINT32
(
session_event
,
&
MF_EVENT_TOPOLOGY_STATUS
,
&
status
))
&&
status
==
MF_TOPOSTATUS_ENDED
)
{
media_
player_create_playback_ended_event
(
player
,
event_status
,
&
event
);
media_
event_create
(
player
,
MFP_EVENT_TYPE_PLAYBACK_ENDED
,
event_status
,
player
->
item
,
&
event
);
}
break
;
...
...
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