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
b769a266
Commit
b769a266
authored
Nov 26, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qedit: Try all possible splitter filters instead of only the first one.
parent
09849ed9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
37 deletions
+41
-37
mediadet.c
dlls/qedit/mediadet.c
+41
-37
No files found.
dlls/qedit/mediadet.c
View file @
b769a266
...
...
@@ -378,52 +378,56 @@ static HRESULT GetSplitter(MediaDetImpl *This)
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IEnumMoniker_Next
(
filters
,
1
,
&
mon
,
NULL
);
IEnumMoniker_Release
(
filters
);
if
(
hr
!=
S_OK
)
/* No matches, what do we do? */
return
E_NOINTERFACE
;
hr
=
E_NOINTERFACE
;
while
(
IEnumMoniker_Next
(
filters
,
1
,
&
mon
,
NULL
)
==
S_OK
)
{
hr
=
GetFilterInfo
(
mon
,
&
clsid
,
&
var
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hr
))
continue
;
hr
=
GetFilterInfo
(
mon
,
&
clsid
,
&
var
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
void
**
)
&
splitter
);
if
(
FAILED
(
hr
))
{
VariantClear
(
&
var
);
goto
retry
;
}
hr
=
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
void
**
)
&
splitter
);
if
(
FAILED
(
hr
))
{
hr
=
IGraphBuilder_AddFilter
(
This
->
graph
,
splitter
,
V_UNION
(
&
var
,
bstrVal
));
VariantClear
(
&
var
);
return
hr
;
}
This
->
splitter
=
splitter
;
if
(
FAILED
(
hr
))
goto
retry
;
hr
=
IGraphBuilder_AddFilter
(
This
->
graph
,
splitter
,
V_UNION
(
&
var
,
bstrVal
));
VariantClear
(
&
var
);
if
(
FAILED
(
hr
))
{
IBaseFilter_Release
(
splitter
);
return
hr
;
}
This
->
splitter
=
splitter
;
hr
=
IBaseFilter_EnumPins
(
This
->
source
,
&
pins
);
if
(
FAILED
(
hr
))
goto
retry
;
IEnumPins_Next
(
pins
,
1
,
&
source_pin
,
NULL
);
IEnumPins_Release
(
pins
);
hr
=
IBaseFilter_EnumPins
(
This
->
source
,
&
pins
);
if
(
FAILED
(
hr
))
return
hr
;
IEnumPins_Next
(
pins
,
1
,
&
source_pin
,
NULL
);
IEnumPins_Release
(
pins
);
hr
=
IBaseFilter_EnumPins
(
splitter
,
&
pins
);
if
(
FAILED
(
hr
))
{
IPin_Release
(
source_pin
);
goto
retry
;
}
IEnumPins_Next
(
pins
,
1
,
&
splitter_pin
,
NULL
);
IEnumPins_Release
(
pins
);
hr
=
IBaseFilter_EnumPins
(
splitter
,
&
pins
);
if
(
FAILED
(
hr
))
{
hr
=
IPin_Connect
(
source_pin
,
splitter_pin
,
NULL
);
IPin_Release
(
source_pin
);
return
hr
;
IPin_Release
(
splitter_pin
);
if
(
SUCCEEDED
(
hr
))
break
;
retry:
IBaseFilter_Release
(
splitter
);
This
->
splitter
=
NULL
;
}
IEnumPins_Next
(
pins
,
1
,
&
splitter_pin
,
NULL
);
IEnumPins_Release
(
pins
);
hr
=
IPin_Connect
(
source_pin
,
splitter_pin
,
NULL
);
IPin_Release
(
source_pin
);
IPin_Release
(
splitter_pin
);
IEnumMoniker_Release
(
filters
);
if
(
FAILED
(
hr
))
return
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