* Check whether an input file is an SRT or text subtitle file. */
| 249 | * Check whether an input file is an SRT or text subtitle file. |
| 250 | */ |
| 251 | G_MODULE_EXPORT gboolean |
| 252 | ghb_file_is_srt_subtitle (const char *filename) |
| 253 | { |
| 254 | for (guint i = 0; i < G_N_ELEMENTS(srt_extensions); i++) |
| 255 | { |
| 256 | if (hb_str_ends_with(filename, srt_extensions[i])) |
| 257 | return TRUE; |
| 258 | } |
| 259 | return FALSE; |
| 260 | } |
| 261 | |
| 262 | /* |
| 263 | * Check whether an input file is a potential subtitle file. |
no test coverage detected