fixes presentation to media and media to presentation time conversions
fixes signalling of stream end
Merge pull request #264 from MSOpenTech/development

Contains fixes for 'ended' event and time conversions