The attached patch add's following new features in existing elements:
* Add's common function to handle new segment event. This function parses new
segment event and covert from BYTE to TIME format. Which helped to play
elementry stream without explicitly setting genTimeStamp=FALSE.
* Add's common function to update position and duration on pad query event.