From: Guillaume Pellerin Date: Tue, 16 Jul 2013 23:07:48 +0000 (+0200) Subject: fix encoder status X-Git-Tag: 0.9~26 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=424c81296794742a7f1bb714c892a13976218ca3;p=telecaster-client.git fix encoder status --- diff --git a/telecaster/tools/status.py b/telecaster/tools/status.py index 50a1e2d..9e04486 100644 --- a/telecaster/tools/status.py +++ b/telecaster/tools/status.py @@ -103,12 +103,12 @@ class Status(object): else: self.jacking = False - if get_pid('edcast_jack', args=False): + if get_pid('gst-launch-0.10', args='lamemp3enc'): self.audio_encoding = True else: self.audio_encoding = False - if get_pid('gst-launch-0.10', args=False): + if get_pid('gst-launch-0.10', args='vp8enc'): self.video_encoding = True else: self.video_encoding = False diff --git a/telecaster/tools/tools.py b/telecaster/tools/tools.py index 058250f..258d5e7 100644 --- a/telecaster/tools/tools.py +++ b/telecaster/tools/tools.py @@ -110,7 +110,7 @@ def get_pid(name, args=None): if proc.cmdline: if name == proc.name: if args: - if args == proc.cmdline[-1]: + if args in proc.cmdline[-1]: return proc.pid else: return proc.pid