When is extracted .asx of the stream from source code of html page, it includes duration of the stream. Example:
(The exact address is randomly generated and works only once, so reload of the web page is needed after each playback.)<ASX VERSION = "3.0"><PARAM NAME="encoding" VALUE="utf-8" /><ENTRY><REF HREF="http://ctwm.visual.cz/iVysilani.Archive ... ske&LIVE=0" /><DURATION VALUE="02:01:41" /><TITLE>Rozloučení s Waldemarem Matuškou</TITLE></ENTRY><TITLE>Rozloučení s Waldemarem Matuškou</TITLE></ASX>
When this .asx is inserted into VLC, it detects different duration (02:02:29 in this case).
Problem: If user tries to transcode and save the stream using VLC's capabilities and the detected duration of the stream is longer than the real one (included in .asx), VLC sets file size of the final output to 0 bytes (Manual stop before stream ends prevents this, so file remains playable) . When detected duration is shorter then real, it just cuts off the end of the stream, but output file is at least readable.
This behavior is platform independent.