From 424c81296794742a7f1bb714c892a13976218ca3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 17 Jul 2013 01:07:48 +0200 Subject: [PATCH] fix encoder status --- telecaster/tools/status.py | 4 ++-- telecaster/tools/tools.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5