You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
It would be incredibly useful for debugging purposes if there was a string Name property on MediaAttributeKey (would be readonly and passed into the constructor along with the Guid and Type).
Eg,
SampleAttributeKeys.BottomFieldFirst.Name would equal "BottomFieldFirst".
Example:
I am debugging why a video isn't playing, I have a SampleGrabberSinkCallback2 derived class which is receiving OnProcessSampleEx calls. Then I am enumerating the MediaAttributes passed to determine the full situation. However each attribute in the collection is just visible to me as a Guid which means nothing, there is no way to index from a Guid to a useful name.
The text was updated successfully, but these errors were encountered:
Nothing is impossible in .NET when Reflection is available ;) Actually it is possible to build a dictionary that will map the Guid to the corresponding field name. Anyway, I added the initialization of the name property at the code generation stage, so it should be much easier to debug now.
It would be incredibly useful for debugging purposes if there was a string Name property on MediaAttributeKey (would be readonly and passed into the constructor along with the Guid and Type).
Eg,
SampleAttributeKeys.BottomFieldFirst.Name would equal "BottomFieldFirst".
Example:
I am debugging why a video isn't playing, I have a SampleGrabberSinkCallback2 derived class which is receiving OnProcessSampleEx calls. Then I am enumerating the MediaAttributes passed to determine the full situation. However each attribute in the collection is just visible to me as a Guid which means nothing, there is no way to index from a Guid to a useful name.
The text was updated successfully, but these errors were encountered: