Commit 3a96bb0f authored by David Fuhrmann's avatar David Fuhrmann

macosx: advanced prefs: save the default value if Default is selected, not NULL

fixes #8942. Default value for avcodec-hw is none, but NULL was saved, so
hardware decoding got enabled unintentionally.
parent c561dcc3
......@@ -1280,6 +1280,10 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
}
}
module_list_free(p_list);
if(returnval == NULL && [newval isEqualToString: _NS("Default")] && p_item->orig.psz != NULL) {
returnval = strdup(p_item->orig.psz);
}
return returnval;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment