I am experimenting with media player functionality on an IP-STB and I would like to have support for VLC in the RTSP client. Everything works fine, except for end-of-stream handling (and position handling to some extent, but that's another story).
Usually RTSP servers send an ANNOUNCE message indicating that the end of the stream is reached (or beginning when rewinding), this is used by e.g. MediaHawk and nCube (C-Cor). Another way to do it is to add DSM-CC information in the transport stream (yep, I am using mux=mp2t), e.g. used by Kasenna.
VLC doesn't seem to use any of the above. Is there any other way to detect end-of-stream? Other than just waiting for data to stop arriving...