Skip to content

Commit 703fbbd

Browse files
committed
fix standards list refresh for the hd toggle
1 parent 635fcb6 commit 703fbbd

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

Resources/vrecord_functions

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,20 @@ _get_decklink_input_list(){
206206
"${FFMPEG_BIN}" -nostdin -v 0 -sources decklink | awk -F'[][]' '{print $2}' | grep -v "^$"
207207
}
208208

209+
_get_format_list(){
210+
if [[ -z ${HD_CHOICE} ]] ; then
211+
. "${CONFIG_FILE}"
212+
fi
213+
if [[ ${HD_CHOICE} != "true" ]] ; then
214+
STANDARD_OPTIONS=("NTSC" "PAL")
215+
else
216+
STANDARD_OPTIONS=("NTSC" "PAL" "23ps - 1080p23.98" "24ps - 1080p24" "Hp25 - 1080p25" "Hp29 - 1080p29.97" "Hp30 - 1080p30" "Hi50 - 1080i50" "Hi59 - 1080i59.94" "Hi60 - 1080i60" "hp50 - 720p50" "hp59 - 720p59.94" "hp60 - 720p60")
217+
fi
218+
for OPTION in "${STANDARD_OPTIONS[@]}"; do
219+
echo "${OPTION}"
220+
done
221+
}
222+
209223
_get_dvrescue_input_list(){
210224
# set dvrescue input options
211225
unset DVRESCUE_DEVICES

vrecord

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ _gtk_vbox_list() {
383383
LIST="<input>_get_dvrescue_input_list</input>"
384384
elif [[ "${VARIABLE_NAME}" == "AUDIO_DEV_CHOICE" ]] ; then
385385
LIST="<input>_get_audio_device_list</input>"
386+
elif [[ "${VARIABLE_NAME}" == "STANDARD_CHOICE" ]] ; then
387+
LIST="<input>_get_format_list</input>"
386388
else
387389
LIST="$(_expand_list2items "${OPTION_LIST[@]}")"
388390
fi
@@ -423,10 +425,7 @@ _gtk_vbox_list() {
423425
<default>\"${HD_CHOICE}\"</default>
424426
<variable>HD_CHOICE</variable>
425427
<action>_update_config_file</action>
426-
<action type=\"clear\">STANDARD_CHOICE</action>
427428
<action type=\"refresh\">STANDARD_CHOICE</action>
428-
<action signal=\"key-release-event\" type=\"refresh\">STANDARD_CHOICE</action>
429-
<action type=\"exit\">refresh</action>
430429
</checkbox>"
431430
elif [[ "${VARIABLE_NAME}" == "EMBED_LOGS_CHOICE" ]] ; then
432431
echo "<sensitive>$(if $MKVPROPEDIT_INSTALLED ; then echo true ; else echo false ; fi)</sensitive>"
@@ -2758,6 +2757,7 @@ if [[ ${HD_CHOICE} != "true" ]] ; then
27582757
else
27592758
STANDARD_OPTIONS=("NTSC" "PAL" "23ps - 1080p23.98" "24ps - 1080p24" "Hp25 - 1080p25" "Hp29 - 1080p29.97" "Hp30 - 1080p30" "Hi50 - 1080i50" "Hi59 - 1080i59.94" "Hi60 - 1080i60" "hp50 - 720p50" "hp59 - 720p59.94" "hp60 - 720p60")
27602759
fi
2760+
# STANDARD_OPTIONS list must be synced with Resources/vrecord_functions in _get_format_list
27612761
QCTOOLSXML_OPTIONS=("Yes, concurrent with recording" "Yes, after recording" "No")
27622762
EMBED_LOGS_OPTIONS=("Yes" "No")
27632763
PLAYBACKVIEW_OPTIONS=("Unfiltered" "Visual" "Audio + Video" "Visual + Numerical" "Color Matrix" "Bit Planes" "Frame Positioning" "Captions")

0 commit comments

Comments
 (0)