Skip to content

Commit 8eed394

Browse files
committed
avoid 'none' values warnings
by the time we need to filter them out, they have had a prefix added (ie: 'enc_' or 'dec_')
1 parent 309a7c6 commit 8eed394

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xpra/codecs/video_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ def apl(l):
123123
inclist = apl(all_fn())
124124
lists = exclist + inclist
125125
all_list = apl(all_list)
126-
unknown = tuple(x for x in lists if ap(x) not in CODEC_TO_MODULE and x.lower()!="none")
126+
unknown = tuple(x for x in lists if ap(x) not in CODEC_TO_MODULE and not x.lower().endswith("none"))
127127
if unknown:
128128
log.warn(f"Warning: ignoring unknown {name}: "+csv(unknown))
129-
notfound = tuple(x for x in lists if (x and ap(x) not in all_list and x not in unknown and x!="none"))
129+
notfound = tuple(x for x in lists if (x and ap(x) not in all_list and x not in unknown and not x.endswith("none")))
130130
if notfound:
131131
log.warn(f"Warning: {name} not found: "+csv(notfound))
132-
r = apl(x for x in inclist if x not in exclist and x!="none")
132+
r = apl(x for x in inclist if x not in exclist and not x.endswith("none"))
133133
#log("filt%s=%s", (prefix, name, inlist, all_fn, all_list), r)
134134
return r
135135

0 commit comments

Comments
 (0)