Skip to content

Commit e0bd9a3

Browse files
committed
sub/sd_sbr: log errors from sbr_load_text
1 parent 9d63342 commit e0bd9a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sub/sd_sbr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ static void decode(struct sd *sd, struct demux_packet *packet)
9696
NULL
9797
);
9898
packet->sub_duration = packet->duration;
99+
100+
if (!ctx->sbr_subtitles) {
101+
const char *error = sbr_get_last_error_string();
102+
mp_err(sd->log, "Failed to load subtitles: %s\n", error);
103+
}
99104
}
100105

101106
static struct sub_bitmaps *get_bitmaps(struct sd *sd, struct mp_osd_res dim,

0 commit comments

Comments
 (0)