MJPEG reader hangs when stream is broken, fixes #269