Ejemplo n.º 1
0
        private static IntPtr GetTransformPtr(SinkWriter writer, int streamIndex)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            var tf = IntPtr.Zero;

            try
            {
                writer.GetServiceForStream(streamIndex, Guid.Empty, typeof(Transform).GUID, out tf);
            }
            catch
            {
                // do nothing
            }
            return(tf);
        }