Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

[MediaFoundation] SinkWriter.GetStatistics fix #1005

Merged
merged 1 commit into from Apr 23, 2018

Conversation

battlebottle
Copy link
Contributor

A fix for SinkWriter.GetStatistics. It's broken at the moment as the cb field of SinkWriterStatistics needs to be set to the size of the struct in bytes before passing it to the method. This is described in the documentation:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd374650(v=vs.85).aspx

I'm not sure if my code represents best practice, so let me know if there's a better way to fix this than what I've done and I'll resubmit it.

@xoofx xoofx merged commit 109bd7f into sharpdx:master Apr 23, 2018
@xoofx
Copy link
Member

xoofx commented Apr 23, 2018

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants