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

Commit 5f28931

Browse files
authored
Merge pull request #1042 from jkoritzinsky/Fix-MediaAttributes-StackOverflow
Fix #1039.
2 parents bdb12ec + d3ea409 commit 5f28931

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SharpDX.MediaFoundation/MediaAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ public unsafe void Set<T>(System.Guid guidKey, T value)
275275
return;
276276
}
277277

278-
if (typeof(T) == typeof(ComObject) || typeof(T).GetTypeInfo().IsSubclassOf(typeof(ComObject)))
278+
if (typeof(T) == typeof(ComObject) || typeof(T).GetTypeInfo().IsSubclassOf(typeof(IUnknown)))
279279
{
280-
Set(guidKey, ((ComObject)(object)value));
280+
Set(guidKey, ((IUnknown)(object)value));
281281
return;
282282
}
283283

0 commit comments

Comments
 (0)