[winswitch] PATCH: Small bug in main script

Timothy Hobbs timothy at hobbs.cz
Fri Dec 30 23:57:50 GMT 2016


As per my last email, I haven't tested this fix yet, but it is so small 
that I'm pretty confident non-the-less...

I see bad output when I run xpra start with --speaker-codec=help. Patch 
to fix the problem is bellow.

$xpra start --speaker-codec=help
Warning: failed to import GStreamer:
  GStreamer 1.0: Namespace Gst not available
  GStreamer 0.10: No module named pygst
s
o
u
n
d

i
s

n
o
t

s
u
p
p
o
r
t
e
d

-

g
s
t
r
e
a
m
e
r

n
o
t

p
r
e
s
e
n
t

o
r

n
o
t

a
c
c
e
s
s
i
b
l
e


Index: trunk/src/xpra/scripts/main.py
===================================================================
--- trunk/src/xpra/scripts/main.py    (revision 14666)
+++ trunk/src/xpra/scripts/main.py    (working copy)
@@ -1020,7 +1020,7 @@
      from xpra.sound.wrapper import query_sound
      props = query_sound()
      if not props:
-        return "sound is not supported - gstreamer not present or not 
accessible"
+        return ["sound is not supported - gstreamer not present or not 
accessible"]
      info = []
      all_speaker_codecs = props.strlistget("decoders")
      invalid_sc = [x for x in speaker_codecs if x not in 
all_speaker_codecs]



More information about the shifter-users mailing list