hr = graphBuilder.QueryInterface(Com.IID_IVideoWindow, p);
if (Com.FAILED(hr))
throw new ComException(hr);
// determine video size:
final IVideoWindow videoWindow = new IVideoWindow(p[0]);
{
long[] width = new long[1];
hr = videoWindow.get_Width(width);
if (Com.FAILED(hr))
throw new ComException(hr);
//logger.fine("width: " + width[0]);
long[] height = new long[1];
hr = videoWindow.get_Height(height);
if (Com.FAILED(hr))
throw new ComException(hr);
//logger.fine("height: " + height[0]);
videoSize = new Dimension((int) width[0], (int) height[0]);
}
videoWindow.Release();
}
catch (ComException e)
{