]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix audio copy mask updates
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 12 Mar 2017 19:50:25 +0000 (13:50 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 12 Mar 2017 19:52:15 +0000 (13:52 -0600)
Updates to the mask would not be applied till it was saved to a preset

(cherry picked from commit 35cf0e22cd51157e249414e824b2cc66151104d4)

gtk/src/audiohandler.c

index 2e8ac4d94dab0982c522302a1998d2ffc3aef3d9..87fe10c13088a9e6f4b0072edf5ebf482c05d4dc 100644 (file)
@@ -1155,8 +1155,9 @@ audio_passthru_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
 
     ghb_widget_to_setting(ud->settings, widget);
     copy_mask = ghb_create_copy_mask(ud->settings);
+    ghb_dict_set(ud->settings, "AudioCopyMask", copy_mask);
     audio = ghb_get_job_audio_settings(ud->settings);
-    ghb_dict_set(audio, "CopyMask", copy_mask);
+    ghb_dict_set(audio, "CopyMask", ghb_value_dup(copy_mask));
     ghb_clear_presets_selection(ud);
 }