]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix segfault
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 2 Nov 2015 23:19:30 +0000 (15:19 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 2 Nov 2015 23:20:30 +0000 (15:20 -0800)
value initialized to incorrect type

gtk/src/callbacks.c

index e77e90de4906c213982de64ac6ad4b80429e244c..897a64985b65380be0c3bd1effd9a13e6733b8d9 100644 (file)
@@ -1838,7 +1838,7 @@ set_title_settings(signal_user_data_t *ud, GhbValue *settings)
         gint num_chapters = hb_list_count(title->list_chapter);
 
         ghb_dict_set_int(settings, "angle", 1);
-        ghb_dict_set_int(settings, "PtoPType", 0);
+        ghb_dict_set_string(settings, "PtoPType", "chapter");
         ghb_dict_set_int(settings, "start_point", 1);
         ghb_dict_set_int(settings, "end_point", num_chapters);
         ghb_dict_set_int(settings, "source_width", title->geometry.width);