Commit d1ce26a7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix avcodec-hw option implementation

The option is presented to the user in a simplified way, since there is only one hardware acceleration module on the Mac.
parent 1e6cf730
...@@ -545,7 +545,8 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam ...@@ -545,7 +545,8 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
[self setupField: o_input_httpproxypwd_sfld forOption:"http-proxy-pwd"]; [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 setIntValue: config_GetInt(p_intf, "postproc-q")];
[o_input_postproc_fld setToolTip: _NS(config_GetLabel(p_intf, "postproc-q"))]; [o_input_postproc_fld setToolTip: _NS(config_GetLabel(p_intf, "postproc-q"))];
[self setupButton: o_input_avcodec_hw_ckb forBoolValue:"avcodec-hw"]; [o_input_avcodec_hw_ckb setState: !strcmp(config_GetPsz(p_intf,"avcodec-hw"), "vdadecoder")];
[o_input_avcodec_hw_ckb setToolTip: _NS(config_GetLabel(p_intf,"avcodec-hw") ?: "")];
[self setupButton: o_input_avi_pop forIntList: "avi-index"]; [self setupButton: o_input_avi_pop forIntList: "avi-index"];
...@@ -882,7 +883,10 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha ...@@ -882,7 +883,10 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha
SaveIntList(o_input_avi_pop, "avi-index"); SaveIntList(o_input_avi_pop, "avi-index");
config_PutInt(p_intf, "rtsp-tcp", [o_input_rtsp_ckb state]); config_PutInt(p_intf, "rtsp-tcp", [o_input_rtsp_ckb state]);
config_PutInt(p_intf, "avcodec-hw", [o_input_avcodec_hw_ckb state]); if ([o_input_avcodec_hw_ckb state])
config_PutPsz(p_intf, "avcodec-hw", "vdadecoder");
else
config_PutPsz(p_intf, "avcodec-hw", "");
SaveIntList(o_input_skipLoop_pop, "avcodec-skiploopfilter"); SaveIntList(o_input_skipLoop_pop, "avcodec-skiploopfilter");
config_PutInt(p_intf, "mkv-preload-local-dir", [o_input_mkv_preload_dir_ckb state]); config_PutInt(p_intf, "mkv-preload-local-dir", [o_input_mkv_preload_dir_ckb state]);
......
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