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
cb43efe9
Commit
cb43efe9
authored
Jun 23, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Implement GetVideoFormat().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7171a63f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
mediatype.c
dlls/mfplat/mediatype.c
+12
-2
No files found.
dlls/mfplat/mediatype.c
View file @
cb43efe9
...
...
@@ -38,6 +38,7 @@ struct media_type
struct
attributes
attributes
;
IMFMediaType
IMFMediaType_iface
;
IMFVideoMediaType
IMFVideoMediaType_iface
;
MFVIDEOFORMAT
*
video_format
;
};
struct
stream_desc
...
...
@@ -648,6 +649,7 @@ static ULONG WINAPI video_mediatype_Release(IMFVideoMediaType *iface)
if
(
!
refcount
)
{
clear_attributes_object
(
&
media_type
->
attributes
);
CoTaskMemFree
(
media_type
->
video_format
);
heap_free
(
media_type
);
}
...
...
@@ -971,9 +973,17 @@ static HRESULT WINAPI video_mediatype_FreeRepresentation(IMFVideoMediaType *ifac
static
const
MFVIDEOFORMAT
*
WINAPI
video_mediatype_GetVideoFormat
(
IMFVideoMediaType
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
struct
media_type
*
media_type
=
impl_from_IMFVideoMediaType
(
iface
);
unsigned
int
size
;
HRESULT
hr
;
TRACE
(
"%p.
\n
"
,
iface
);
CoTaskMemFree
(
media_type
->
video_format
);
if
(
FAILED
(
hr
=
MFCreateMFVideoFormatFromMFMediaType
((
IMFMediaType
*
)
iface
,
&
media_type
->
video_format
,
&
size
)))
WARN
(
"Failed to create format description, hr %#x.
\n
"
,
hr
);
return
NULL
;
return
media_type
->
video_format
;
}
static
HRESULT
WINAPI
video_mediatype_GetVideoRepresentation
(
IMFVideoMediaType
*
iface
,
GUID
representation
,
...
...
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