private boolean hasBufferToImage()
{
FrameGrabbingControl fg = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
Buffer buf = fg.grabFrame(); // take a snap
if (buf == null) {
//System.out.println("No grabbed frame");
return false;
}