[MPlayer-dev-eng] [PATCH] find_sub bugfix when sub switched

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Oct 21 13:59:31 CEST 2007


Hello,
On Thu, Oct 11, 2007 at 10:08:38PM +0800, Ulion wrote:
> I found a bug of find_sub, it has two static variables
> nosub_range_start and nosub_range_end. These two variables did not be
> reset when sub stream switched, here's the fix patch and test case
> (two srt, the first sub stream will invisible until the first sub time
> of second sub stream after switched to the second substream and
> switched back.)

Seems like a somewhat ugly way to fix it (assuming that subd pointer
changes and not just the data), but I currently have no better idea.
Anyone else?

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list