MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_file_is_srt_subtitle

Function ghb_file_is_srt_subtitle

gtk/src/util.c:251–260  ·  view source on GitHub ↗

* Check whether an input file is an SRT or text subtitle file. */

Source from the content-addressed store, hash-verified

249 * Check whether an input file is an SRT or text subtitle file.
250 */
251G_MODULE_EXPORT gboolean
252ghb_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.

Callers 1

ghb_file_is_subtitleFunction · 0.85

Calls 1

hb_str_ends_withFunction · 0.85

Tested by

no test coverage detected