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
fed36aee
Commit
fed36aee
authored
Oct 22, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qasf/asfreader: Do not store the media type passed to IFileSourceFilter::Load().
parent
c4f46fef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
asfreader.c
dlls/qasf/asfreader.c
+5
-13
No files found.
dlls/qasf/asfreader.c
View file @
fed36aee
...
...
@@ -189,7 +189,6 @@ struct asf_reader
struct
strmbase_filter
filter
;
IFileSourceFilter
IFileSourceFilter_iface
;
AM_MEDIA_TYPE
media_type
;
WCHAR
*
file_name
;
HRESULT
result
;
...
...
@@ -409,7 +408,6 @@ static void asf_reader_destroy(struct strmbase_filter *iface)
}
free
(
filter
->
file_name
);
FreeMediaType
(
&
filter
->
media_type
);
IWMReaderCallback_Release
(
filter
->
callback
);
IWMReader_Release
(
filter
->
reader
);
...
...
@@ -652,12 +650,6 @@ static HRESULT WINAPI file_source_Load(IFileSourceFilter *iface, LPCOLESTR file_
return
E_FAIL
;
}
if
(
media_type
&&
FAILED
(
hr
=
CopyMediaType
(
&
filter
->
media_type
,
media_type
)))
{
LeaveCriticalSection
(
&
filter
->
filter
.
filter_cs
);
return
hr
;
}
EnterCriticalSection
(
&
filter
->
status_cs
);
if
(
SUCCEEDED
(
hr
=
IWMReader_Open
(
filter
->
reader
,
filter
->
file_name
,
filter
->
callback
,
NULL
)))
{
...
...
@@ -688,11 +680,11 @@ static HRESULT WINAPI file_source_GetCurFile(IFileSourceFilter *iface, LPOLESTR
if
(
media_type
)
{
media_type
->
majortype
=
filter
->
media_type
.
majortype
;
media_type
->
subtype
=
filter
->
media_type
.
subtype
;
media_type
->
lSampleSize
=
filter
->
media_type
.
lSampleSize
;
media_type
->
pUnk
=
filter
->
media_type
.
pUnk
;
media_type
->
cbFormat
=
filter
->
media_type
.
cbFormat
;
media_type
->
majortype
=
GUID_NULL
;
media_type
->
subtype
=
GUID_NULL
;
media_type
->
lSampleSize
=
0
;
media_type
->
pUnk
=
NULL
;
media_type
->
cbFormat
=
0
;
}
if
(
filter
->
file_name
)
...
...
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