summaryrefslogtreecommitdiffstats
path: root/sub/filter_sdh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/filter_sdh.c')
-rw-r--r--sub/filter_sdh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/filter_sdh.c b/sub/filter_sdh.c
index 1881ee0d2c..92359786d1 100644
--- a/sub/filter_sdh.c
+++ b/sub/filter_sdh.c
@@ -132,6 +132,7 @@ static void skip_speaker_label(struct sd *sd, char **rpp, struct buffer *buf)
(filter_harder || mp_isupper(rp[0]) || rp[0] == 'l')) ||
mp_isdigit(rp[0]) ||
rp[0] == ' ' || rp[0] == '\'' ||
+ (filter_harder && (rp[0] == '(' || rp[0] == ')')) ||
rp[0] == '#' || rp[0] == '.' || rp[0] == ',') {
rp++;
} else {
@@ -151,7 +152,7 @@ static void skip_speaker_label(struct sd *sd, char **rpp, struct buffer *buf)
} else if (rp[0] == '\\' && rp[1] == 'N') {
// line end follows - skip it as line is empty
rp += 2;
- } else if (rp[0] == ' ' || filter_harder) {
+ } else if (rp[0] == ' ') {
while (rp[0] == ' ') {
rp++;
}