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
52cca8e8
Commit
52cca8e8
authored
Mar 22, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Remove typedef for attributes structure.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71bf156e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
main.c
dlls/mfplat/main.c
+9
-9
mfplat_private.h
dlls/mfplat/mfplat_private.h
+2
-2
No files found.
dlls/mfplat/main.c
View file @
52cca8e8
...
...
@@ -644,9 +644,9 @@ static const char *debugstr_attr(const GUID *guid)
return
ret
?
wine_dbg_sprintf
(
"%s"
,
ret
->
name
)
:
wine_dbgstr_guid
(
guid
);
}
static
inline
mf
attributes
*
impl_from_IMFAttributes
(
IMFAttributes
*
iface
)
static
inline
struct
attributes
*
impl_from_IMFAttributes
(
IMFAttributes
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
mf
attributes
,
IMFAttributes_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
attributes
,
IMFAttributes_iface
);
}
static
HRESULT
WINAPI
mfattributes_QueryInterface
(
IMFAttributes
*
iface
,
REFIID
riid
,
void
**
out
)
...
...
@@ -668,12 +668,12 @@ static HRESULT WINAPI mfattributes_QueryInterface(IMFAttributes *iface, REFIID r
static
ULONG
WINAPI
mfattributes_AddRef
(
IMFAttributes
*
iface
)
{
mfattributes
*
Thi
s
=
impl_from_IMFAttributes
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
Thi
s
->
ref
);
struct
attributes
*
attribute
s
=
impl_from_IMFAttributes
(
iface
);
ULONG
ref
count
=
InterlockedIncrement
(
&
attribute
s
->
ref
);
TRACE
(
"
(%p) ref=%u
\n
"
,
This
,
ref
);
TRACE
(
"
%p, refcount %d.
\n
"
,
iface
,
refcount
);
return
ref
;
return
ref
count
;
}
static
ULONG
WINAPI
mfattributes_Release
(
IMFAttributes
*
iface
)
...
...
@@ -1792,7 +1792,7 @@ HRESULT WINAPI MFInitAttributesFromBlob(IMFAttributes *dest, const UINT8 *buffer
typedef
struct
_mfbytestream
{
mf
attributes
attributes
;
struct
attributes
attributes
;
IMFByteStream
IMFByteStream_iface
;
}
mfbytestream
;
...
...
@@ -2273,7 +2273,7 @@ HRESULT WINAPI MFGetPluginControl(IMFPluginControl **ret)
typedef
struct
_mfpresentationdescriptor
{
mf
attributes
attributes
;
struct
attributes
attributes
;
IMFPresentationDescriptor
IMFPresentationDescriptor_iface
;
}
mfpresentationdescriptor
;
...
...
@@ -3566,7 +3566,7 @@ HRESULT WINAPI MFCreateSourceResolver(IMFSourceResolver **resolver)
typedef
struct
media_event
{
mf
attributes
attributes
;
struct
attributes
attributes
;
IMFMediaEvent
IMFMediaEvent_iface
;
MediaEventType
type
;
...
...
dlls/mfplat/mfplat_private.h
View file @
52cca8e8
...
...
@@ -30,7 +30,7 @@ struct attribute
PROPVARIANT
value
;
};
typedef
struct
attributes
struct
attributes
{
IMFAttributes
IMFAttributes_iface
;
LONG
ref
;
...
...
@@ -38,7 +38,7 @@ typedef struct attributes
struct
attribute
*
attributes
;
size_t
capacity
;
size_t
count
;
}
mfattributes
;
};
extern
HRESULT
init_attributes_object
(
struct
attributes
*
object
,
UINT32
size
)
DECLSPEC_HIDDEN
;
extern
void
clear_attributes_object
(
struct
attributes
*
object
)
DECLSPEC_HIDDEN
;
...
...
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