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
fa455f59
Commit
fa455f59
authored
Nov 12, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add fallback to unknown metadata reader.
parent
1dee3734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
imgfactory.c
dlls/windowscodecs/imgfactory.c
+24
-1
metadata.c
dlls/windowscodecs/tests/metadata.c
+1
-1
No files found.
dlls/windowscodecs/imgfactory.c
View file @
fa455f59
...
@@ -1050,7 +1050,30 @@ start:
...
@@ -1050,7 +1050,30 @@ start:
IEnumUnknown_Release
(
enumreaders
);
IEnumUnknown_Release
(
enumreaders
);
if
(
!*
reader
&&
!
(
options
&
WICMetadataCreationFailUnknown
))
if
(
!*
reader
&&
!
(
options
&
WICMetadataCreationFailUnknown
))
FIXME
(
"create unknown metadata reader
\n
"
);
{
hr
=
IStream_Seek
(
stream
,
zero
,
STREAM_SEEK_SET
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
UnknownMetadataReader_CreateInstance
(
&
IID_IWICMetadataReader
,
(
void
**
)
reader
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_QueryInterface
(
*
reader
,
&
IID_IWICPersistStream
,
(
void
**
)
&
wicpersiststream
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICPersistStream_LoadEx
(
wicpersiststream
,
stream
,
NULL
,
options
&
WICPersistOptionsMask
);
IWICPersistStream_Release
(
wicpersiststream
);
}
if
(
FAILED
(
hr
))
{
IWICMetadataReader_Release
(
*
reader
);
*
reader
=
NULL
;
}
}
}
if
(
*
reader
)
if
(
*
reader
)
return
S_OK
;
return
S_OK
;
...
...
dlls/windowscodecs/tests/metadata.c
View file @
fa455f59
...
@@ -876,7 +876,7 @@ static void test_create_reader(void)
...
@@ -876,7 +876,7 @@ static void test_create_reader(void)
hr
=
IWICComponentFactory_CreateMetadataReaderFromContainer
(
factory
,
hr
=
IWICComponentFactory_CreateMetadataReaderFromContainer
(
factory
,
&
GUID_ContainerFormatWmp
,
NULL
,
WICPersistOptionsDefault
,
&
GUID_ContainerFormatWmp
,
NULL
,
WICPersistOptionsDefault
,
stream
,
&
reader
);
stream
,
&
reader
);
todo_wine
ok
(
hr
==
S_OK
,
"CreateMetadataReaderFromContainer failed, hr=%x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"CreateMetadataReaderFromContainer failed, hr=%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
...
...
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