{
final RendererNode rendererNode = filterGraph.getRendererNode(videoTrackIndex);
if (rendererNode != null) {
final VideoRenderer videoRenderer = (VideoRenderer) rendererNode.getRenderer();
final VideoFormat videoRendererInputFormat = (VideoFormat) rendererNode.getInputFormat();
// TODO: we need to start the demux
visualComponent = videoRenderer.getComponent();
visualComponent.setSize(videoRendererInputFormat.getSize());
//logger.fine("Video size: " + videoRendererInputFormat.getSize());
videoRenderer.setBounds(new Rectangle(videoRendererInputFormat.getSize()));
}
}
// TODO:
// Sun's AudioRenderer implements Prefetchable, Drainable, Clock