| 258 | } |
| 259 | |
| 260 | static gboolean |
| 261 | title_destination_is_unique (GhbValue *settings_array, gint index) |
| 262 | { |
| 263 | gint count, ii; |
| 264 | GhbValue *settings, *gdest; |
| 265 | const char *dest; |
| 266 | |
| 267 | settings = ghb_array_get(settings_array, index); |
| 268 | gdest = ghb_dict_get_value(settings, "destination"); |
| 269 | dest = ghb_value_get_string(gdest); |
| 270 | if (dest == NULL) |
| 271 | return FALSE; |
| 272 | |
| 273 | count = ghb_array_len(settings_array); |
| 274 | count = count < index ? count : index; |
| 275 | for (ii = 0; ii < count; ii++) |
| 276 | { |
| 277 | const char *tmp; |
| 278 | |
| 279 | settings = ghb_array_get(settings_array, ii); |
| 280 | gdest = ghb_dict_get_value(settings, "destination"); |
| 281 | tmp = ghb_value_get_string(gdest); |
| 282 | if (tmp != NULL && !strncmp(dest, tmp, PATH_MAX)) |
| 283 | return FALSE; |
| 284 | } |
| 285 | return TRUE; |
| 286 | } |
| 287 | |
| 288 | static PangoAttrList *default_title_attrs; |
| 289 |
no test coverage detected