You really should avoid any attempt to render here. Pass the frame out from decode down to the normal renderers.