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
81448739
Commit
81448739
authored
Feb 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3b8fbc2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
Makefile.in
dlls/mfplay/Makefile.in
+0
-1
player.c
dlls/mfplay/player.c
+22
-22
No files found.
dlls/mfplay/Makefile.in
View file @
81448739
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
mfplay.dll
IMPORTLIB
=
mfplay
IMPORTS
=
mfplat mf ole32 user32 uuid mfuuid strmiids
...
...
dlls/mfplay/player.c
View file @
81448739
...
...
@@ -175,7 +175,7 @@ static ULONG WINAPI media_event_AddRef(IUnknown *iface)
struct
media_event
*
event
=
impl_event_from_IUnknown
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
event
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
return
refcount
;
}
...
...
@@ -185,7 +185,7 @@ static ULONG WINAPI media_event_Release(IUnknown *iface)
struct
media_event
*
event
=
impl_event_from_IUnknown
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
event
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -330,7 +330,7 @@ static ULONG WINAPI media_item_AddRef(IMFPMediaItem *iface)
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
item
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
return
refcount
;
}
...
...
@@ -340,7 +340,7 @@ static ULONG WINAPI media_item_Release(IMFPMediaItem *iface)
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
item
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -419,7 +419,7 @@ static HRESULT WINAPI media_item_SetUserData(IMFPMediaItem *iface, DWORD_PTR use
{
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
TRACE
(
"%p, %
l
x.
\n
"
,
iface
,
user_data
);
TRACE
(
"%p, %
I
x.
\n
"
,
iface
,
user_data
);
item
->
user_data
=
user_data
;
...
...
@@ -607,7 +607,7 @@ static HRESULT WINAPI media_item_GetStreamSelection(IMFPMediaItem *iface, DWORD
IMFStreamDescriptor
*
sd
;
HRESULT
hr
;
TRACE
(
"%p, %u, %p.
\n
"
,
iface
,
index
,
selected
);
TRACE
(
"%p, %
l
u, %p.
\n
"
,
iface
,
index
,
selected
);
if
(
SUCCEEDED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
item
->
pd
,
index
,
selected
,
&
sd
)))
IMFStreamDescriptor_Release
(
sd
);
...
...
@@ -619,7 +619,7 @@ static HRESULT WINAPI media_item_SetStreamSelection(IMFPMediaItem *iface, DWORD
{
struct
media_item
*
item
=
impl_from_IMFPMediaItem
(
iface
);
TRACE
(
"%p, %u, %d.
\n
"
,
iface
,
index
,
select
);
TRACE
(
"%p, %
l
u, %d.
\n
"
,
iface
,
index
,
select
);
return
select
?
IMFPresentationDescriptor_SelectStream
(
item
->
pd
,
index
)
:
IMFPresentationDescriptor_DeselectStream
(
item
->
pd
,
index
);
...
...
@@ -633,7 +633,7 @@ static HRESULT WINAPI media_item_GetStreamAttribute(IMFPMediaItem *iface, DWORD
BOOL
selected
;
HRESULT
hr
;
TRACE
(
"%p, %u, %s, %p.
\n
"
,
iface
,
index
,
debugstr_guid
(
key
),
value
);
TRACE
(
"%p, %
l
u, %s, %p.
\n
"
,
iface
,
index
,
debugstr_guid
(
key
),
value
);
if
(
SUCCEEDED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
item
->
pd
,
index
,
&
selected
,
&
sd
)))
{
...
...
@@ -681,7 +681,7 @@ static HRESULT WINAPI media_item_SetStreamSink(IMFPMediaItem *iface, DWORD index
BOOL
selected
;
HRESULT
hr
;
TRACE
(
"%p, %u, %p.
\n
"
,
iface
,
index
,
sink
);
TRACE
(
"%p, %
l
u, %p.
\n
"
,
iface
,
index
,
sink
);
if
(
FAILED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
item
->
pd
,
index
,
&
selected
,
&
sd
)))
return
hr
;
...
...
@@ -778,7 +778,7 @@ static HRESULT media_item_set_source(struct media_item *item, IUnknown *object)
if
(
FAILED
(
hr
=
IMFMediaSource_CreatePresentationDescriptor
(
source
,
&
pd
)))
{
WARN
(
"Failed to get presentation descriptor, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to get presentation descriptor, hr %#
l
x.
\n
"
,
hr
);
IMFMediaSource_Release
(
source
);
return
hr
;
}
...
...
@@ -834,7 +834,7 @@ static ULONG WINAPI media_player_AddRef(IMFPMediaPlayer *iface)
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
player
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
return
refcount
;
}
...
...
@@ -844,7 +844,7 @@ static ULONG WINAPI media_player_Release(IMFPMediaPlayer *iface)
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
player
->
refcount
);
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
TRACE
(
"%p, refcount %
l
u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1082,7 +1082,7 @@ static HRESULT WINAPI media_player_CreateMediaItemFromURL(IMFPMediaPlayer *iface
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %s, %d, %
l
x, %p.
\n
"
,
iface
,
debugstr_w
(
url
),
sync
,
user_data
,
item
);
TRACE
(
"%p, %s, %d, %
I
x, %p.
\n
"
,
iface
,
debugstr_w
(
url
),
sync
,
user_data
,
item
);
EnterCriticalSection
(
&
player
->
cs
);
if
(
player
->
state
==
MFP_MEDIAPLAYER_STATE_SHUTDOWN
)
...
...
@@ -1174,7 +1174,7 @@ static HRESULT WINAPI media_player_CreateMediaItemFromObject(IMFPMediaPlayer *if
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %p, %d, %
l
x, %p.
\n
"
,
iface
,
object
,
sync
,
user_data
,
item
);
TRACE
(
"%p, %p, %d, %
I
x, %p.
\n
"
,
iface
,
object
,
sync
,
user_data
,
item
);
EnterCriticalSection
(
&
player
->
cs
);
if
(
player
->
state
==
MFP_MEDIAPLAYER_STATE_SHUTDOWN
)
...
...
@@ -1249,12 +1249,12 @@ static HRESULT media_item_create_topology(struct media_player *player, struct me
else
if
(
IsEqualGUID
(
&
major
,
&
MFMediaType_Audio
))
{
if
(
FAILED
(
hr
=
MFCreateAudioRendererActivate
((
IMFActivate
**
)
&
sink
)))
WARN
(
"Failed to create SAR activation object, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create SAR activation object, hr %#
l
x.
\n
"
,
hr
);
}
else
if
(
IsEqualGUID
(
&
major
,
&
MFMediaType_Video
)
&&
player
->
output_window
&&
!
video_added
)
{
if
(
FAILED
(
hr
=
MFCreateVideoRendererActivate
(
player
->
output_window
,
(
IMFActivate
**
)
&
sink
)))
WARN
(
"Failed to create EVR activation object, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create EVR activation object, hr %#
l
x.
\n
"
,
hr
);
video_added
=
SUCCEEDED
(
hr
);
}
...
...
@@ -1482,7 +1482,7 @@ static HRESULT WINAPI media_player_SetAspectRatioMode(IMFPMediaPlayer *iface, DW
IMFVideoDisplayControl
*
display_control
;
HRESULT
hr
;
TRACE
(
"%p, %u.
\n
"
,
iface
,
mode
);
TRACE
(
"%p, %
l
u.
\n
"
,
iface
,
mode
);
if
(
SUCCEEDED
(
hr
=
media_player_get_display_control
(
player
,
&
display_control
)))
{
...
...
@@ -1535,7 +1535,7 @@ static HRESULT WINAPI media_player_SetBorderColor(IMFPMediaPlayer *iface, COLORR
IMFVideoDisplayControl
*
display_control
;
HRESULT
hr
;
TRACE
(
"%p, %#x.
\n
"
,
iface
,
color
);
TRACE
(
"%p, %#
l
x.
\n
"
,
iface
,
color
);
if
(
SUCCEEDED
(
hr
=
media_player_get_display_control
(
player
,
&
display_control
)))
{
...
...
@@ -1678,7 +1678,7 @@ static HRESULT WINAPI media_player_propstore_GetAt(IPropertyStore *iface, DWORD
{
struct
media_player
*
player
=
impl_from_IPropertyStore
(
iface
);
TRACE
(
"%p, %u, %p.
\n
"
,
iface
,
prop
,
key
);
TRACE
(
"%p, %
l
u, %p.
\n
"
,
iface
,
prop
,
key
);
return
IPropertyStore_GetAt
(
player
->
propstore
,
prop
,
key
);
}
...
...
@@ -1784,7 +1784,7 @@ static HRESULT WINAPI media_player_resolver_callback_Invoke(IMFAsyncCallback *if
}
if
(
FAILED
(
hr
))
WARN
(
"Failed to set media source, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to set media source, hr %#
l
x.
\n
"
,
hr
);
if
(
FAILED
(
media_event_create
(
player
,
MFP_EVENT_TYPE_MEDIAITEM_CREATED
,
hr
,
&
item
->
IMFPMediaItem_iface
,
&
event
)))
...
...
@@ -2111,7 +2111,7 @@ HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_C
{
if
(
FAILED
(
hr
=
media_player_create_item_from_url
(
object
,
url
,
TRUE
,
0
,
&
item
)))
{
WARN
(
"Failed to create media item, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create media item, hr %#
l
x.
\n
"
,
hr
);
goto
failed
;
}
...
...
@@ -2119,7 +2119,7 @@ HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_C
IMFPMediaItem_Release
(
item
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to set media item, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to set media item, hr %#
l
x.
\n
"
,
hr
);
goto
failed
;
}
...
...
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