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
14e228c6
Commit
14e228c6
authored
Mar 12, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Add source filter to the filtergraph before loading the file.
parent
b15c4113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
amstream.c
dlls/amstream/amstream.c
+6
-7
No files found.
dlls/amstream/amstream.c
View file @
14e228c6
...
...
@@ -316,6 +316,10 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_OpenFile(IAMMultiMediaStream* ifac
if
(
ret
!=
S_OK
)
return
ret
;
ret
=
IGraphBuilder_AddSourceFilter
(
This
->
pFilterGraph
,
pszFileName
,
pszFileName
,
&
BaseFilter
);
if
(
FAILED
(
ret
))
goto
end
;
ret
=
IFileSourceFilter_Load
(
SourceFilter
,
pszFileName
,
NULL
);
if
(
ret
!=
S_OK
)
{
...
...
@@ -337,23 +341,18 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_OpenFile(IAMMultiMediaStream* ifac
}
ret
=
IEnumPins_Next
(
EnumPins
,
1
,
&
ipin
,
NULL
);
if
(
ret
==
S_OK
)
if
(
ret
==
S_OK
)
{
ret
=
IPin_QueryDirection
(
ipin
,
&
pin_direction
);
IEnumPins_Release
(
EnumPins
);
if
(
ret
==
S_OK
&&
pin_direction
==
PINDIR_OUTPUT
)
if
(
ret
==
S_OK
&&
pin_direction
==
PINDIR_OUTPUT
)
This
->
ipin
=
ipin
;
else
goto
end
;
}
else
{
IEnumPins_Release
(
EnumPins
);
goto
end
;
}
ret
=
IGraphBuilder_AddSourceFilter
(
This
->
pFilterGraph
,
pszFileName
,
pszFileName
,
&
BaseFilter
);
end:
IBaseFilter_Release
(
BaseFilter
);
IFileSourceFilter_Release
(
SourceFilter
);
...
...
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