subparse: fix off by one offset calculation
authorArnaud Vrac <avrac@freebox.fr>
Thu, 14 Feb 2013 00:35:45 +0000 (01:35 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 22 Mar 2013 11:09:11 +0000 (11:09 +0000)
commit4816885ce3e99ac6ff430e3bf40db2186b3f53e8
treee841a00c24f6a9d02770e40cd8ed21ea07563fe3
parente53f1d3f402db5a6c24f12c99044d5f6088b2b1b
subparse: fix off by one offset calculation

Do not use the buffer start offset when it is invalid, otherwise a
discontinuity is detected on the next buffer, and the subtitle parser
reset and some subtitle lines are not shown.

Also remove unused next_offset field.

https://bugzilla.gnome.org/show_bug.cgi?id=693981
gst/subparse/gstsubparse.c
gst/subparse/gstsubparse.h