Add event to indicate that the source element has reached the end of stream

Change-Id: Ic78f0081b7fdf3aa1a77c895e5c1bc325034880b