Completed tracks were ignored from selection/deselection, so they stayed always selected. This breaks re-selecting e.g. embedded TTML subtitles which consist of a single large sample spanning an entire media time.
Example of this bug:
Clearly demuxer is inconsistent here - its behaviour when selecting a "deselected" track changes whether it is the first time the track is selected or not. This MR makes it consistent - newly selected track get selected (and rewound) regardless of its history.
VideoLAN code repository instance