[vlc-commits] macosx: fix crash if 'avcodec-hw' isn't set
Felix Paul Kühne
git at videolan.org
Wed Mar 6 15:50:33 CET 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Mar 6 15:50:24 2013 +0100| [82692c4058958432ca1f4e95d9a5bce21795f2fe] | committer: Felix Paul Kühne
macosx: fix crash if 'avcodec-hw' isn't set
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82692c4058958432ca1f4e95d9a5bce21795f2fe
---
modules/gui/macosx/simple_prefs.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index daeae18..a96f8dc 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -545,7 +545,10 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
[self setupField: o_input_httpproxypwd_sfld forOption:"http-proxy-pwd"];
[o_input_postproc_fld setIntValue: config_GetInt(p_intf, "postproc-q")];
[o_input_postproc_fld setToolTip: _NS(config_GetLabel(p_intf, "postproc-q"))];
- [o_input_avcodec_hw_ckb setState: !strcmp(config_GetPsz(p_intf,"avcodec-hw"), "vdadecoder")];
+ if (config_GetPsz(p_intf,"avcodec-hw"))
+ [o_input_avcodec_hw_ckb setState: !strcmp(config_GetPsz(p_intf,"avcodec-hw"), "vdadecoder")];
+ else
+ [o_input_avcodec_hw_ckb setState: NSOffState];
[o_input_avcodec_hw_ckb setToolTip: _NS(config_GetLabel(p_intf,"avcodec-hw") ?: "")];
[self setupButton: o_input_avi_pop forIntList: "avi-index"];
More information about the vlc-commits
mailing list