Fix a regression introduced by the previous commit
authorMathieu Sonet <chjirpa@free.fr>
Tue, 23 Dec 2008 22:07:29 +0000 (23:07 +0100)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 24 Dec 2008 14:36:25 +0000 (16:36 +0200)
commit6b9013dbfeaa4bad2f984f25663934cccd45e091
treec758cfa7731bb86f518ec90dfeaed32e72a0fd90
parent7f7c0d67ed8ce56bcc8379e24b12f7ecfc37fc65
Fix a regression introduced by the previous commit

The previous commit confused i_line_count and i_line:
* txt->i_line_count contains the number of text lines.
* txt->i_line is the current offset in txt->line.

As a result no subtitles were available because TextGetLine always returned NULL.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/demux/vobsub.c