diff options
author | jstebbins <[email protected]> | 2015-05-01 20:30:18 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-05-01 20:30:18 +0000 |
commit | 6d3692a9b72039a8d7390fe831a1a61ee4611cd5 (patch) | |
tree | 7c9bac1c50627ce85c42ddaa0cb1120c1592d36b /gtk | |
parent | 764431388bfd0cd967b67ba698d27ed0502632a6 (diff) |
LinGui: fix scanning file specified on command line
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7149 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 8cbc6011d..da297eae5 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1245,9 +1245,12 @@ start_scan( gboolean ghb_idle_scan(signal_user_data_t *ud) { - const gchar *path; - path = ghb_dict_get_string(ud->globals, "scan_source"); + gchar *path; + // ghb_do_scan replaces "scan_source" key in dict, so we must + // make a copy of the string. + path = g_strdup(ghb_dict_get_string(ud->globals, "scan_source")); ghb_do_scan(ud, path, 0, TRUE); + g_free(path); return FALSE; } |