subparse: Improve subrip type check regex
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 1 Sep 2011 00:51:17 +0000 (20:51 -0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Sep 2011 12:52:15 +0000 (14:52 +0200)
commit25939e02183e9a9420d02c3f2c3ddcd3fe83cd65
tree9985e3cf2392d3de30d230149c2ad9dcb1a31277
parent2ad501aa518b2358cd6df90f98888f3598123e65
subparse: Improve subrip type check regex

This patch prevents timestamp like "1 1:00:00", which would have been seen
as hour 101 by our parser, and allow single digit hour, minute and seconds
as it's already supported by the parser, and also by other implementation
like in mplayer. This fixes bug 657872.

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