muxer libav: do not write new data when an error occured, fixes #2420
webui: http streaming - cosmetic changes, check getsockopt return code
profile: add chain reopen function for DVR,fixes #2419