MP1-4155: fixed case when sometimes end of stream is not signaled to demuxer