Fix bug introduced by !2018 (merged) ; solution preferable to !2033 (merged). Aligned with what VLCReader does.