mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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.
This commit is contained in:
parent
1166abbc99
commit
aab5744b0e
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-10-18 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* 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 <wim@fluendo.com>
|
2006-10-18 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
||||||
|
|
|
@ -677,7 +677,7 @@ gst_sub_parse_data_format_autodetect (gchar * match_str)
|
||||||
need_init_regexps = FALSE;
|
need_init_regexps = FALSE;
|
||||||
if ((err = regcomp (&mdvd_rx, "^\\{[0-9]+\\}\\{[0-9]+\\}",
|
if ((err = regcomp (&mdvd_rx, "^\\{[0-9]+\\}\\{[0-9]+\\}",
|
||||||
REG_EXTENDED | REG_NEWLINE | REG_NOSUB) != 0) ||
|
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}"
|
||||||
" --> [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) {
|
REG_EXTENDED | REG_NEWLINE | REG_NOSUB)) != 0) {
|
||||||
|
|
Loading…
Reference in a new issue