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
7d89e791
Commit
7d89e791
authored
Aug 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove unnecessary tracing from GetClassMediaFile().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4006aa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
24 deletions
+8
-24
filesource.c
dlls/quartz/filesource.c
+7
-24
filtergraph.c
dlls/quartz/filtergraph.c
+1
-0
No files found.
dlls/quartz/filesource.c
View file @
7d89e791
...
...
@@ -191,8 +191,6 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p
HRESULT
hr
=
S_OK
;
ULONG
strpos
;
TRACE
(
"
\t\t
Pattern string: %s
\n
"
,
debugstr_w
(
wszPatternString
));
/* format: "offset, bytestocompare, mask, value" */
ulOffset
=
wcstol
(
wszPatternString
,
NULL
,
10
);
...
...
@@ -281,8 +279,6 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
BOOL
bFound
=
FALSE
;
static
const
WCHAR
wszMediaType
[]
=
{
'M'
,
'e'
,
'd'
,
'i'
,
'a'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
TRACE
(
"(%p, %s, %p, %p)
\n
"
,
pReader
,
debugstr_w
(
pszFileName
),
majorType
,
minorType
);
if
(
majorType
)
*
majorType
=
GUID_NULL
;
if
(
minorType
)
...
...
@@ -308,7 +304,6 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
break
;
if
(
RegOpenKeyExW
(
hkeyMediaType
,
wszMajorKeyName
,
0
,
KEY_READ
,
&
hkeyMajor
)
!=
ERROR_SUCCESS
)
break
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
wszMajorKeyName
));
if
(
!
wcscmp
(
wszExtensions
,
wszMajorKeyName
))
{
if
(
process_extensions
(
hkeyMajor
,
pszFileName
,
majorType
,
minorType
,
sourceFilter
)
==
S_OK
)
...
...
@@ -335,8 +330,6 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
if
(
RegOpenKeyExW
(
hkeyMajor
,
wszMinorKeyName
,
0
,
KEY_READ
,
&
hkeyMinor
)
!=
ERROR_SUCCESS
)
break
;
TRACE
(
"
\t
%s
\n
"
,
debugstr_w
(
wszMinorKeyName
));
if
(
RegQueryInfoKeyW
(
hkeyMinor
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
maxValueLen
,
NULL
,
NULL
)
!=
ERROR_SUCCESS
)
break
;
...
...
@@ -387,22 +380,7 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
}
CloseHandle
(
hkeyMediaType
);
if
(
SUCCEEDED
(
hr
)
&&
!
bFound
)
{
ERR
(
"Media class not found
\n
"
);
hr
=
E_FAIL
;
}
else
if
(
bFound
)
{
TRACE
(
"Found file's class:
\n
"
);
if
(
majorType
)
TRACE
(
"
\t
major = %s
\n
"
,
qzdebugstr_guid
(
majorType
));
if
(
minorType
)
TRACE
(
"
\t
subtype = %s
\n
"
,
qzdebugstr_guid
(
minorType
));
if
(
sourceFilter
)
TRACE
(
"
\t
source filter = %s
\n
"
,
qzdebugstr_guid
(
sourceFilter
));
}
if
(
hr
==
S_OK
&&
!
bFound
)
hr
=
E_FAIL
;
return
hr
;
}
...
...
@@ -581,7 +559,12 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
if
(
!
pmt
)
{
CopyMediaType
(
This
->
pmt
,
&
default_mt
);
if
(
FAILED
(
GetClassMediaFile
(
&
This
->
IAsyncReader_iface
,
pszFileName
,
&
This
->
pmt
->
majortype
,
&
This
->
pmt
->
subtype
,
NULL
)))
if
(
SUCCEEDED
(
GetClassMediaFile
(
&
This
->
IAsyncReader_iface
,
pszFileName
,
&
This
->
pmt
->
majortype
,
&
This
->
pmt
->
subtype
,
NULL
)))
{
TRACE
(
"Found major type %s, subtype %s.
\n
"
,
debugstr_guid
(
&
This
->
pmt
->
majortype
),
debugstr_guid
(
&
This
->
pmt
->
subtype
));
}
else
{
This
->
pmt
->
majortype
=
MEDIATYPE_Stream
;
This
->
pmt
->
subtype
=
MEDIASUBTYPE_NULL
;
...
...
dlls/quartz/filtergraph.c
View file @
7d89e791
...
...
@@ -1739,6 +1739,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
if
(
hr
==
S_OK
)
{
TRACE
(
"Found source filter %s.
\n
"
,
debugstr_guid
(
&
clsid
));
/* Release the AsyncReader filter and create the matching one */
IBaseFilter_Release
(
*
filter
);
return
CreateFilterInstanceAndLoadFile
(
&
clsid
,
pszFileName
,
filter
);
...
...
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