| 1114 | } subtitle_behavior_t; |
| 1115 | |
| 1116 | static int has_default_subtitle(hb_value_array_t *list) |
| 1117 | { |
| 1118 | int ii, count, def; |
| 1119 | |
| 1120 | count = hb_value_array_len(list); |
| 1121 | for (ii = 0; ii < count; ii++) |
| 1122 | { |
| 1123 | hb_value_t *sub = hb_value_array_get(list, ii); |
| 1124 | def = hb_value_get_int(hb_dict_get(sub, "Default")); |
| 1125 | if (def) |
| 1126 | { |
| 1127 | return def; |
| 1128 | } |
| 1129 | } |
| 1130 | return 0; |
| 1131 | } |
| 1132 | |
| 1133 | static void add_subtitle_for_lang(hb_value_array_t *list, hb_title_t *title, |
| 1134 | int mux, const char *lang, int passthru_name, |
no test coverage detected