Skip to content

Commit

Permalink
machine-prefs: fix stack overwrite from ULONG stored in gint
Browse files Browse the repository at this point in the history
Causes crash when changing enum types in machine prefs dialog
  • Loading branch information
dlbeswick authored and ensonic committed Mar 8, 2021
1 parent 8f09a2e commit 9624cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/edit/machine-preferences-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ bt_machine_preferences_dialog_init_ui (const BtMachinePreferencesDialog * self)
GST_INFO ("enum range: %d, %d", enum_class->minimum,
enum_class->maximum);
// need a real model because of sparse enums
store = gtk_list_store_new (2, G_TYPE_ULONG, G_TYPE_STRING);
store = gtk_list_store_new (2, G_TYPE_INT, G_TYPE_STRING);
for (value = enum_class->minimum; value <= enum_class->maximum; value++) {
if ((enum_value = g_enum_get_value (enum_class, value))) {
//GST_INFO("enum value: %d, '%s', '%s'",enum_value->value,enum_value->value_name,enum_value->value_nick);
Expand Down

0 comments on commit 9624cc2

Please sign in to comment.