rolanday
Joined: 18 Dec 2005
Posts: 1
|
Posted:
Sun Dec 18, 2005 6:36 am Post subject:
Help: Cannot obtain IWMStreamConfig2 from WM ASF reader |
|
|
I've tried just about everything but have been unsuccessful in obtaining IWMStreamConfig2 from the DShow WM ASF reader filter’s video output pin. This includes following the SDK documentation by querying for IServiceProvider and then calling QueryService to obtain the interface, and then trying things that “shouldn’t” work such as querying from the interface directly on both the pin and the filter itself.
I’ve found very little information in the SDK and on the web, and no samples. The few references I have found on forums are from people having the same problem but w/ no solutions posted except for the following:
“We worked the issue around by obtaining IWMProfile interface from the
filter, enumerating streams and quering IWMStreamConfig2 from a video
stream.”
However, this doesn’t make any sense either because the filter doesn’t provide this interface. Is there a way to obtain a pointer to the reader object from the filter? Better yet, can anybody tell me how to obtain IWMStreamConfig2 from the filter?
Thanks in advance,
-Roland.
|
|
Roman Kudinov
Guest
|
Posted:
Mon Dec 19, 2005 1:30 pm Post subject:
Re: Cannot obtain IWMStreamConfig2 from WM ASF reader |
|
|
Hi Roland,
We tried to address this issue some time ago and it seems that the profile
is the only way to obtain the pointer to IWMStreamConfig2 interface. I think
that this is the correct way because I noticed many inexactnesses in WMF SDK
in part of DirectShow implementation, so this is just one of them.
Thank you,
Roman
"rolanday" <roland_ayala@msn-dot-com.no-spam.invalid> ???????/???????? ?
???????? ?????????: news:dJidnfvZrcW8sTjeRVn_vA@giganews.com...
| Quote: | I've tried just about everything but have been unsuccessful in
obtaining IWMStreamConfig2 from the DShow WM ASF reader filter’s
video output pin. This includes following the SDK documentation by
querying for IServiceProvider and then calling QueryService to obtain
the interface, and then trying things that “shouldn’t” work such as
querying from the interface directly on both the pin and the filter
itself.
I’ve found very little information in the SDK and on the web, and no
samples. The few references I have found on forums are from people
having the same problem but w/ no solutions posted except for the
following:
“We worked the issue around by obtaining IWMProfile
interface from the
filter, enumerating streams and quering IWMStreamConfig2 from a video
stream.”
However, this doesn’t make any sense either because the filter doesn’t
provide this interface. Is there a way to obtain a pointer to the
reader object from the filter? Better yet, can anybody tell me how to
obtain IWMStreamConfig2 from the filter?
Thanks in advance,
-Roland.
|
|
|