* Check whether an input file is a potential subtitle file. */
| 235 | * Check whether an input file is a potential subtitle file. |
| 236 | */ |
| 237 | G_MODULE_EXPORT gboolean |
| 238 | ghb_file_is_ssa_subtitle (const char *filename) |
| 239 | { |
| 240 | for (guint i = 0; i < G_N_ELEMENTS(ssa_extensions); i++) |
| 241 | { |
| 242 | if (hb_str_ends_with(filename, ssa_extensions[i])) |
| 243 | return TRUE; |
| 244 | } |
| 245 | return FALSE; |
| 246 | } |
| 247 | |
| 248 | /* |
| 249 | * Check whether an input file is an SRT or text subtitle file. |
no test coverage detected