Reputation: 14385
When a pin connection problem arises in my Delphi 6 (with DSPACK) DirectShow application I like to get the media format currently assigned to the pins involved in the connection. I do this by querying the IAMStreamConfig interface if the pins supports it. I am finding that some pins do not. Is there another reliable way to quickly get the media format currently assigned to a pin that does not support IAMStreamConfig?
Upvotes: 2
Views: 546
Reputation: 69734
IPin::ConnectionMediaType
gets you connection media type, the type the pins have agreed onIAMStreamConfig::GetFormat
gets you media type of unconnected yet pin, the type is about to be 'preferred' for the supposed connectionUpvotes: 1