From aab5744b0e980e7b107da2132358c51740023324 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 18 Oct 2006 15:13:59 +0000 Subject: [PATCH] gst/subparse/gstsubparse.c: Don't require subrip (.srt) files to start with a chunk number of 1. Original commit message from CVS: * gst/subparse/gstsubparse.c: (gst_sub_parse_data_format_autodetect): Don't require subrip (.srt) files to start with a chunk number of 1. --- ChangeLog | 6 ++++++ gst/subparse/gstsubparse.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1651554..6f1ebd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-18 Tim-Philipp Müller + + * gst/subparse/gstsubparse.c: + (gst_sub_parse_data_format_autodetect): + Don't require subrip (.srt) files to start with a chunk number of 1. + 2006-10-18 Wim Taymans * gst-libs/gst/audio/gstbaseaudiosink.c: diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 8771054..a073c82 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -677,7 +677,7 @@ gst_sub_parse_data_format_autodetect (gchar * match_str) need_init_regexps = FALSE; if ((err = regcomp (&mdvd_rx, "^\\{[0-9]+\\}\\{[0-9]+\\}", REG_EXTENDED | REG_NEWLINE | REG_NOSUB) != 0) || - (err = regcomp (&subrip_rx, "^1(\x0d)?\x0a" + (err = regcomp (&subrip_rx, "^[1-9]([0-9]){0,3}(\x0d)?\x0a" "[0-9][0-9]:[0-9][0-9]:[0-9][0-9],[0-9]{3}" " --> [0-9][0-9]:[0-9][0-9]:[0-9][0-9],[0-9]{3}", REG_EXTENDED | REG_NEWLINE | REG_NOSUB)) != 0) { -- 2.7.4