public void update(ReceiveStreamEvent event)
{
if (event instanceof NewReceiveStreamEvent)
{
logger.fine("NewReceiveStreamEvent: " + event);
final NewReceiveStreamEvent eCast = (NewReceiveStreamEvent) event;
dataSource = eCast.getReceiveStream().getDataSource();
final PushBufferStream[] originalStreams = ((PushBufferDataSource) dataSource).getStreams();
streams = new PushBufferStream[originalStreams.length];
for (int i = 0; i < streams.length; ++i)
{
// For video formats, look ahead to first buffer, and get video size.