diff options
author | John Stebbins <[email protected]> | 2016-05-24 15:04:56 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-24 15:05:56 -0600 |
commit | e7578bb85c3cfebc65e69c33bbb4e123ae01a11d (patch) | |
tree | 1fa9bab9f7cd8d7034e6c11e94223d47995bbcd5 /gtk/src/subtitlehandler.c | |
parent | 12ffa792a5ec30ae3c2b0b90f18ce6d80d3cfd1b (diff) |
LinGui: fix audio and subtitle descriptions in queue
... When "Add Multiple" is used.
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r-- | gtk/src/subtitlehandler.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index 52d6517c6..c012d4a65 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -409,6 +409,22 @@ subtitle_set_track_description(GhbValue *settings, GhbValue *subsettings) g_free(desc); } +void ghb_sanitize_subtitle_track_settings(GhbValue *settings) +{ + int ii; + GhbValue *slist = ghb_get_job_subtitle_list(settings); + int count = ghb_array_len(slist); + + GhbValue *subtitle_search = ghb_get_job_subtitle_search(settings); + subtitle_set_track_description(settings, subtitle_search); + for (ii = 0; ii < count; ii++) + { + GhbValue *subsettings = ghb_array_get(slist, ii); + subtitle_set_track_description(settings, subsettings); + } +} + + static GhbValue* subtitle_add_track( signal_user_data_t *ud, GhbValue *settings, |